Skip to content

net/http: accept * as URI in request parser #3692

Closed
@anacrolix

Description

@anacrolix
Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Parse a HTTP request with an unusual URL, such as SSDP notification.
2. Parsing fails because the rawurl is "*"

What is the expected output?
The request URL should be set to nil, and "*" be present in
http.Request.RequestURI.


What do you see instead?
A parse error.

Which version are you using?  (run 'go version')
go1

Please provide any additional information below.
I can provide a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions