Commit 0485a999 authored by Michael Hoisie's avatar Michael Hoisie Committed by Andrew Gerrand

http request URI should never be empty

R=rsc, adg
CC=golang-dev
https://golang.org/cl/217071
parent e198c8e6
......@@ -167,7 +167,7 @@ func (req *Request) Write(w io.Writer) os.Error {
host = req.URL.Host
}
uri := urlEscape(req.URL.Path, false)
uri := valueOrDefault(urlEscape(req.URL.Path, false), "/")
if req.URL.RawQuery != "" {
uri += "?" + req.URL.RawQuery
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment