aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <brad@danga.com>2011-01-14 09:10:02 +1100
committerAndrew Gerrand <adg@golang.org>2011-01-14 09:10:02 +1100
commitb448263f7929554c1a54474826722cebb751f4e7 (patch)
tree2ac15db9a86e9cf3d6a456b1a64f57748532e196 /src/pkg/http/request.go
parentf6f1401286adc6e67fc2a9f5b9651ef8ead309c9 (diff)
downloadgo-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.go2
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
}