preserve original URL encoding

fixes #115
This commit is contained in:
Will Norris 2017-10-05 17:57:41 +00:00
parent 7dbadc01d4
commit 37c9f4d6ab
2 changed files with 5 additions and 1 deletions

View file

@ -172,6 +172,10 @@ func TestNewRequest(t *testing.T) {
"http://localhost/http:///example.com/foo",
"http://example.com/foo", emptyOptions, false,
},
{ // escaped path
"http://localhost/http://example.com/%2C",
"http://example.com/%2C", emptyOptions, false,
},
}
for _, tt := range tests {