mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
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:
parent
a71584a63c
commit
a1af9aa8e2
3 changed files with 10 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue