mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
fix serving static webmail files in development mode
due to a missing return, the content was served again. this path doesn't happen on release binaries, only during local development, where there is a local file that can be served.
This commit is contained in:
parent
165639cb38
commit
4283ceecfc
1 changed files with 1 additions and 0 deletions
|
@ -311,6 +311,7 @@ func serveContentFallback(log *mlog.Log, w http.ResponseWriter, r *http.Request,
|
|||
st, err := f.Stat()
|
||||
if err == nil {
|
||||
http.ServeContent(w, r, "", st.ModTime(), f)
|
||||
return
|
||||
}
|
||||
}
|
||||
http.ServeContent(w, r, "", fallbackMtime(log), bytes.NewReader(fallback))
|
||||
|
|
Loading…
Reference in a new issue