0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

save and restore original url fragment

This commit is contained in:
Will Norris 2019-03-17 02:51:55 +00:00
parent 3444fd9cb4
commit 4acc0b24ce

View file

@ -352,8 +352,10 @@ func (t *TransformingTransport) RoundTrip(req *http.Request) (*http.Response, er
return t.Transport.RoundTrip(req)
}
f := req.URL.Fragment
req.URL.Fragment = ""
resp, err := t.CachingClient.Do(req)
req.URL.Fragment = f
if err != nil {
return nil, err
}