diff options
author | Adam Mathes <adam@trenchant.org> | 2018-04-29 12:58:25 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2018-04-29 12:58:25 -0700 |
commit | 5e9981a5a8f993d6233b9a321a643bd947ce4449 (patch) | |
tree | cd036534c77f20bb2ec0ae4d6804dbc92fcf5796 /web | |
parent | 09b8f4494bf904b03d3d9f78d9c00004d2f5b992 (diff) | |
download | neko-5e9981a5a8f993d6233b9a321a643bd947ce4449.tar.gz neko-5e9981a5a8f993d6233b9a321a643bd947ce4449.tar.bz2 neko-5e9981a5a8f993d6233b9a321a643bd947ce4449.zip |
debug cleanup
Diffstat (limited to 'web')
-rw-r--r-- | web/web.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } |