aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-04-29 12:58:25 -0700
committerAdam Mathes <adam@trenchant.org>2018-04-29 12:58:25 -0700
commit5e9981a5a8f993d6233b9a321a643bd947ce4449 (patch)
treecd036534c77f20bb2ec0ae4d6804dbc92fcf5796 /web
parent09b8f4494bf904b03d3d9f78d9c00004d2f5b992 (diff)
downloadneko-5e9981a5a8f993d6233b9a321a643bd947ce4449.tar.gz
neko-5e9981a5a8f993d6233b9a321a643bd947ce4449.tar.bz2
neko-5e9981a5a8f993d6233b9a321a643bd947ce4449.zip
debug cleanup
Diffstat (limited to 'web')
-rw-r--r--web/web.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/web.go b/web/web.go
index 2151926..21caf22 100644
--- a/web/web.go
+++ b/web/web.go
@@ -161,7 +161,8 @@ func imageProxyHandler(w http.ResponseWriter, r *http.Request) {
request, err := http.NewRequest("GET", string(decodedURL), nil)
if err != nil {
- log.Fatalln(err)
+ http.Error(w, "failed to proxy image", 404)
+ return
}
userAgent := "neko RSS Reader Image Proxy +https://github.com/adammathes/neko"
@@ -169,7 +170,7 @@ func imageProxyHandler(w http.ResponseWriter, r *http.Request) {
resp, err := c.Do(request)
if err != nil {
- http.Error(w, "filed to proxy image", 404)
+ http.Error(w, "failed to proxy image", 404)
return
}