Set content-type on auth_token.js

This commit is contained in:
Andy Skelton 2016-06-24 19:36:04 +00:00
parent 510542b159
commit ac49153071

View File

@ -361,6 +361,7 @@ func (app *App) handleCustomIndex(w http.ResponseWriter, r *http.Request) {
} }
func (app *App) handleAuthToken(w http.ResponseWriter, r *http.Request) { func (app *App) handleAuthToken(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/javascript")
w.Write([]byte("var gotty_auth_token = '" + app.options.Credential + "';")) w.Write([]byte("var gotty_auth_token = '" + app.options.Credential + "';"))
} }