Skip to content

net/http: client not following redirects by default #12705

Closed
@piazzamp

Description

@piazzamp

this line in client.go causes some confusion in the default behavior of client.Do(). The documentation says that the default HTTP method of a request is GET and that, when clients issue GET requests, redirects will be followed.

It seems that the aforementioned line should include req.Method == ""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions