Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5387)

Unified Diff: src/pkg/http/cgi/child.go

Issue 4893043: code review 4893043: url: new package (Closed)
Patch Set: diff -r a8d309fd526f https://go.googlecode.com/hg/ Created 13 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/http/Makefile ('k') | src/pkg/http/cgi/host.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/http/cgi/child.go
===================================================================
--- a/src/pkg/http/cgi/child.go
+++ b/src/pkg/http/cgi/child.go
@@ -18,6 +18,7 @@
"os"
"strconv"
"strings"
+ "url"
)
// Request returns the HTTP request as represented in the current
@@ -93,7 +94,7 @@
// Hostname is provided, so we can reasonably construct a URL,
// even if we have to assume 'http' for the scheme.
r.RawURL = "http://" + r.Host + params["REQUEST_URI"]
- url, err := http.ParseURL(r.RawURL)
+ url, err := url.Parse(r.RawURL)
if err != nil {
return nil, os.NewError("cgi: failed to parse host and REQUEST_URI into a URL: " + r.RawURL)
}
@@ -103,7 +104,7 @@
// failed to parse
if r.URL == nil {
r.RawURL = params["REQUEST_URI"]
- url, err := http.ParseURL(r.RawURL)
+ url, err := url.Parse(r.RawURL)
if err != nil {
return nil, os.NewError("cgi: failed to parse REQUEST_URI into a URL: " + r.RawURL)
}
« no previous file with comments | « src/pkg/http/Makefile ('k') | src/pkg/http/cgi/host.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b