diff options
| author | Brad Fitzpatrick <brad@danga.com> | 2011-01-14 09:10:02 +1100 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2011-01-14 09:10:02 +1100 |
| commit | b448263f7929554c1a54474826722cebb751f4e7 (patch) | |
| tree | 2ac15db9a86e9cf3d6a456b1a64f57748532e196 /src/pkg/http/request.go | |
| parent | f6f1401286adc6e67fc2a9f5b9651ef8ead309c9 (diff) | |
| download | go-b448263f7929554c1a54474826722cebb751f4e7.tar.xz | |
http: fix scheme-relative URL parsing; add ParseRequestURL
Also adds some tests for Issue 900 which was the reason
the current URL parsing is broken. (the previous fix
was wrong)
R=rsc, adg, dangabrad, bradfitzwork
CC=golang-dev
https://golang.org/cl/3910042
Diffstat (limited to 'src/pkg/http/request.go')
| -rw-r--r-- | src/pkg/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index b88689988d..04bebaaf55 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -504,7 +504,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err os.Error) { return nil, &badStringError{"malformed HTTP version", req.Proto} } - if req.URL, err = ParseURL(req.RawURL); err != nil { + if req.URL, err = ParseRequestURL(req.RawURL); err != nil { return nil, err } |
