diff options
author | FChannel <> | 2021-10-03 13:37:30 -0700 |
---|---|---|
committer | FChannel <> | 2021-10-03 13:37:30 -0700 |
commit | c1ba6f94d7a44f79ea1ef2513021f2a29aba9a3e (patch) | |
tree | 8dd63d96e0a0240010b8a00df61c3bd1fb436525 | |
parent | 4d73ce8f72b90e0f7e11b35f6bc63498576f83c0 (diff) |
fix for broken media urls
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2840,7 +2840,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") |