fix (#234): missing mime type

This commit is contained in:
Mickael Kerjean
2020-03-05 21:30:30 +11:00
parent c117c99401
commit 2c891c35c8
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ func init(){
Hooks.Register.HttpEndpoint(func(r *mux.Router, app *App) error {
r.HandleFunc(OverrideVideoSourceMapper, func(res http.ResponseWriter, req *http.Request) {
res.Header().Set("Content-Type", "application/javascript")
res.Header().Set("Content-Type", GetMimeType(req.URL.String()))
res.Write([]byte(`window.overrides["video-map-sources"] = function(sources){`))
res.Write([]byte(` return sources.map(function(source){`))