Commit 6c39fadc authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

http2/h2i: send RequestURI as path, to not lose query args

Change-Id: I95161246bbb1a29490c0058593ee36bcb706e1d9
Reviewed-on: https://go-review.googlesource.com/34820
Run-TryBot: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarMatt Layher <mdlayher@gmail.com>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent da2b4fa2
......@@ -473,7 +473,7 @@ func (app *h2i) encodeHeaders(req *http.Request) []byte {
host = req.URL.Host
}
path := req.URL.Path
path := req.RequestURI
if path == "" {
path = "/"
}
......
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