diff --git a/imageproxy.go b/imageproxy.go index 6430471..55df86a 100644 --- a/imageproxy.go +++ b/imageproxy.go @@ -168,6 +168,9 @@ func (t *TransformingTransport) RoundTrip(req *http.Request) (*http.Response, er u := *req.URL u.Fragment = "" resp, err := t.Client.Get(u.String()) + if err != nil { + return nil, err + } defer resp.Body.Close() b, err := ioutil.ReadAll(resp.Body)