diff options
Diffstat (limited to 'src/pkg/net/http/readrequest_test.go')
| -rw-r--r-- | src/pkg/net/http/readrequest_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/net/http/readrequest_test.go b/src/pkg/net/http/readrequest_test.go index df2f5aba99..2e03c658aa 100644 --- a/src/pkg/net/http/readrequest_test.go +++ b/src/pkg/net/http/readrequest_test.go @@ -64,6 +64,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 7, Host: "www.techcrunch.com", + RequestURI: "http://www.techcrunch.com/", }, "abcdef\n", @@ -89,6 +90,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 0, Host: "foo.com", + RequestURI: "/", }, noBody, @@ -114,6 +116,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 0, Host: "test", + RequestURI: "//user@host/is/actually/a/path/", }, noBody, @@ -163,6 +166,7 @@ var reqTests = []reqTest{ Header: Header{}, ContentLength: -1, Host: "foo.com", + RequestURI: "/", }, "foobar", @@ -188,6 +192,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 0, Host: "www.google.com:443", + RequestURI: "www.google.com:443", }, noBody, @@ -211,6 +216,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 0, Host: "127.0.0.1:6060", + RequestURI: "127.0.0.1:6060", }, noBody, @@ -234,6 +240,7 @@ var reqTests = []reqTest{ Close: false, ContentLength: 0, Host: "", + RequestURI: "/_goRPC_", }, noBody, |
