| Index: src/pkg/net/url/url_test.go |
| =================================================================== |
| --- a/src/pkg/net/url/url_test.go |
| +++ b/src/pkg/net/url/url_test.go |
| @@ -210,6 +210,15 @@ |
| "http://jane:p%40ssword@google.com", |
| }, |
| { |
| + "http://foo%3Abar:~!%40%23$%25%5E&*()_+%7B%7D%7C%5B%5D%5C-=%60%3A;'%22%3C%3E%3F,.%2F@google.com", |
| + &URL{ |
| + Scheme: "http", |
| + User: UserPassword("foo:bar", "~!@#$%^&*()_+{}|[]\\-=`:;'\"<>?,./"), |
| + Host: "google.com", |
| + }, |
| + "", |
| + }, |
| + { |
| "http://j@ne:password@google.com/p@th?q=@go", |
| &URL{ |
| Scheme: "http", |
| @@ -872,6 +881,15 @@ |
| }, |
| "opaque?q=go+language", |
| }, |
| + // characters newly reserved in RFC 3986 |
| + { |
| + &URL{ |
| + Scheme: "http", |
| + Host: "example.com", |
| + Path: "/[]!'()*/", |
| + }, |
| + "/%5B%5D!'()*/", |
| + }, |
| } |
| func TestRequestURI(t *testing.T) { |