aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 922d74d..68d8a4f 100644
--- a/main.go
+++ b/main.go
@@ -2852,7 +2852,7 @@ func RouteImages(w http.ResponseWriter, media string) {
resp, err := client.Do(req)
- if err != nil || resp.StatusCode == 404 {
+ if err != nil || resp.StatusCode != 200 {
fileBytes, err := ioutil.ReadFile("./static/notfound.png")
CheckError(err, "could not get /static/notfound.png file bytes")