handle 'cleaned' remote URLs

If imageproxy runs behind an http.ServeMux or certain web servers, the
double slash in the remote URL will get collapsed down to a single
slash.  (e.g. http://example.com/ becomes http:/example.com/).  This
is now handled by imageproxy directly.

Ref #65
This commit is contained in:
Will Norris 2016-05-26 13:22:17 -07:00
parent a71584a63c
commit a1af9aa8e2
3 changed files with 10 additions and 4 deletions

View file

@ -143,6 +143,10 @@ func TestNewRequest(t *testing.T) {
"http://localhost//http://example.com/foo?bar",
"http://example.com/foo?bar", emptyOptions, false,
},
{
"http://localhost/http:/example.com/foo",
"http://example.com/foo", emptyOptions, false,
},
}
for _, tt := range tests {