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:
parent
3444fd9cb4
commit
4acc0b24ce
1 changed files with 2 additions and 0 deletions
|
@ -352,8 +352,10 @@ func (t *TransformingTransport) RoundTrip(req *http.Request) (*http.Response, er
|
||||||
return t.Transport.RoundTrip(req)
|
return t.Transport.RoundTrip(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
f := req.URL.Fragment
|
||||||
req.URL.Fragment = ""
|
req.URL.Fragment = ""
|
||||||
resp, err := t.CachingClient.Do(req)
|
resp, err := t.CachingClient.Do(req)
|
||||||
|
req.URL.Fragment = f
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue