]> Cypherpunks repositories - gostls13.git/commit
net/http: add Request.RequestURI field
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 26 Jan 2012 22:37:14 +0000 (14:37 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 26 Jan 2012 22:37:14 +0000 (14:37 -0800)
commit899cd04e214435ee09483231fc3fa03ad270c5e6
treebc8b35ab2d48e0031a7c5513e8feaf1a6351c2d3
parent408f0b1f7459ebcbc74ad5936950072796fe449a
net/http: add Request.RequestURI field

The new url.URL's parsing can be too canonicalizing for
certain applications. By keeping the original request URI
around, we give applications a gross escape hatch while
keeping the URL package clean and simple for normal uses.

(From a discussion with Gary Burd, Gustavo Niemeyer,
and Russ Cox.)

Fixes #2782

R=golang-dev, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5580044
src/pkg/net/http/client.go
src/pkg/net/http/client_test.go
src/pkg/net/http/readrequest_test.go
src/pkg/net/http/request.go