projects
/
fotomat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d43fbc
)
Pass through 403 errors.
author
Aaron Hopkins
<github@die.net>
Tue, 11 Mar 2014 22:53:56 +0000
(22:53 +0000)
committer
Aaron Hopkins
<github@die.net>
Tue, 11 Mar 2014 22:53:56 +0000
(22:53 +0000)
image-handler.go
patch
|
blob
|
history
diff --git
a/image-handler.go
b/image-handler.go
index fb2ac09f29f7356791905d31958fcb1290e4948a..5d8d728687f74375ff3f2a5978a2458c33a4515a 100644
(file)
--- a/
image-handler.go
+++ b/
image-handler.go
@@
-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.Status
Forbidden, http.Status
NotFound:
return body, nil, resp.StatusCode
default:
err := fmt.Errorf("Proxy received %d %s", resp.StatusCode, http.StatusText(resp.StatusCode))