imageviewer.js will fallback to proxy image when full image fails to load
This commit is contained in:
parent
8f2c0d45f8
commit
72d76c85ed
2 changed files with 23 additions and 11 deletions
|
@ -511,5 +511,6 @@ func serveMissingImage(w http.ResponseWriter, r *http.Request) {
|
|||
w.Header().Set("Cache-Control", "no-store, must-revalidate")
|
||||
w.Header().Set("Pragma", "no-cache")
|
||||
w.Header().Set("Expires", "0")
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
http.ServeFile(w, r, missingImagePath)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue