Pass through 403 errors.
authorAaron Hopkins <github@die.net>
Tue, 11 Mar 2014 22:53:56 +0000 (22:53 +0000)
committerAaron Hopkins <github@die.net>
Tue, 11 Mar 2014 22:53:56 +0000 (22:53 +0000)
image-handler.go

index fb2ac09f29f7356791905d31958fcb1290e4948a..5d8d728687f74375ff3f2a5978a2458c33a4515a 100644 (file)
@@ -84,7 +84,7 @@ func fetchUrl(url string) ([]byte, error, int) {
        }
 
        switch resp.StatusCode {
-       case http.StatusOK, http.StatusNoContent, http.StatusNotFound:
+       case http.StatusOK, http.StatusNoContent, http.StatusForbidden, http.StatusNotFound:
                return body, nil, resp.StatusCode
        default:
                err := fmt.Errorf("Proxy received %d %s", resp.StatusCode, http.StatusText(resp.StatusCode))