Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: client not following redirects by default #12705
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
The method could be either one of the predefined methods or an extension method. I don't understand why do we support empty string as a method in the first place.