Commit ac491530 by Andy Skelton

Set content-type on auth_token.js

1 parent 510542b1
Showing with 1 additions and 0 deletions
...@@ -361,6 +361,7 @@ func (app *App) handleCustomIndex(w http.ResponseWriter, r *http.Request) { ...@@ -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 + "';"))
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!