diff --git a/cmdServe.go b/cmdServe.go index 32b591b..7a03ca2 100644 --- a/cmdServe.go +++ b/cmdServe.go @@ -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) }