Skip to content

net/http: invalid method "" #13311

@nathan-osman

Description

@nathan-osman

The documentation for http.Request clearly states:

"For client requests an empty string means GET."

However, when I attempt to make an HTTP request (using http.DefaultClient.Do()) with Method set to an empty string, I wind up with the following error:

net/http: invalid method ""

Details

$ go version
go version devel +6bf794a Wed Nov 18 19:00:45 2015 +0000 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions