Skip to content

avhttp redirect情况下的两个小bug #32

@krisbin

Description

@krisbin

1、如果是post请求,在处理redirect的情况下,应该对返回的Location进行Get方式的访问,但是代码中还是POST继续请求下去,导致错误的请求。
2、get请求方式下,通过request_options设置的请求头信息,在redirect以后,会丢失,使用代码中默认设置的请求头来处理了,典型的就是自己设置的user_agent,在redirect请求的时候,user_agent发生了变化。

请求大大们处理,如果是使用方式不对,请大大们指点,感激感激!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions