mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 04:41:17 +00:00
Fix: Mime guessing takes only the extension
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fdef8bc43c
commit
68e73bbf53
1 changed files with 1 additions and 1 deletions
|
@ -80,6 +80,6 @@ func handleAssets(res http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
res.Header().Set("Content-Type", mime.TypeByExtension(path.Base(r.URL.Path)))
|
||||
res.Header().Set("Content-Type", mime.TypeByExtension(path.Ext(r.URL.Path)))
|
||||
res.Write(buf)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue