mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 23:53:07 +01:00
Proper 404's for objects
This commit is contained in:
14 files changed
+149
-81
No files matched your search
@@ -34,13 +34,13 @@ func NotFound() func(http.ResponseWriter, *http.Request) {
|
||||
if err == errIsDir {
|
||||
err = tryRead(assetsSub, "index.html", w)
|
||||
if err != nil {
|
||||
h.ResultErrorJSON(w, r, http.StatusNotFound, "Not found", nil)
|
||||
h.NotFound(w, r)
|
||||
}
|
||||
} else if err == nil {
|
||||
return
|
||||
}
|
||||
|
||||
h.ResultErrorJSON(w, r, http.StatusNotFound, "Not found", nil)
|
||||
h.NotFound(w, r)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user