aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-06-22 14:42:09 -0400
committerRuss Cox <rsc@golang.org>2015-06-22 19:01:21 +0000
commitffbed5c22aec733ae2527f5a1025a4eff8eca93a (patch)
treed29367130312665d413c7b8cb68cf231c3046367 /src/net/http
parent9a3112bcaeaa4ff81803c1e5dd9ca6932c14f2c1 (diff)
downloadgo-ffbed5c22aec733ae2527f5a1025a4eff8eca93a.tar.xz
net/http: fix tests for recent URL.RawPath addition
Change-Id: I35d20ed958c32d464b2c9d849403b6e3f99b6482 Reviewed-on: https://go-review.googlesource.com/11343 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/readrequest_test.go22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/net/http/readrequest_test.go b/src/net/http/readrequest_test.go
index e930d99af6..eeb91e4a42 100644
--- a/src/net/http/readrequest_test.go
+++ b/src/net/http/readrequest_test.go
@@ -45,9 +45,10 @@ var reqTests = []reqTest{
&Request{
Method: "GET",
URL: &url.URL{
- Scheme: "http",
- Host: "www.techcrunch.com",
- Path: "/",
+ Scheme: "http",
+ Host: "www.techcrunch.com",
+ Path: "/",
+ RawPath: "/",
},
Proto: "HTTP/1.1",
ProtoMajor: 1,
@@ -82,7 +83,8 @@ var reqTests = []reqTest{
&Request{
Method: "GET",
URL: &url.URL{
- Path: "/",
+ Path: "/",
+ RawPath: "/",
},
Proto: "HTTP/1.1",
ProtoMajor: 1,
@@ -108,7 +110,8 @@ var reqTests = []reqTest{
&Request{
Method: "GET",
URL: &url.URL{
- Path: "//user@host/is/actually/a/path/",
+ Path: "//user@host/is/actually/a/path/",
+ RawPath: "//user@host/is/actually/a/path/",
},
Proto: "HTTP/1.1",
ProtoMajor: 1,
@@ -158,7 +161,8 @@ var reqTests = []reqTest{
&Request{
Method: "POST",
URL: &url.URL{
- Path: "/",
+ Path: "/",
+ RawPath: "/",
},
TransferEncoding: []string{"chunked"},
Proto: "HTTP/1.1",
@@ -232,7 +236,8 @@ var reqTests = []reqTest{
&Request{
Method: "CONNECT",
URL: &url.URL{
- Path: "/_goRPC_",
+ Path: "/_goRPC_",
+ RawPath: "/_goRPC_",
},
Proto: "HTTP/1.1",
ProtoMajor: 1,
@@ -303,7 +308,8 @@ var reqTests = []reqTest{
&Request{
Method: "GET",
URL: &url.URL{
- Path: "/",
+ Path: "/",
+ RawPath: "/",
},
Header: Header{
// This wasn't removed from Go 1.0 to