aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
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
}