From ac491530717cf3ed646aa12e5a7fbc1b48cafaff Mon Sep 17 00:00:00 2001 From: Andy Skelton Date: Fri, 24 Jun 2016 19:36:04 +0000 Subject: [PATCH] Set content-type on auth_token.js --- app/app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/app.go b/app/app.go index 60722cc..ef788fa 100644 --- a/app/app.go +++ b/app/app.go @@ -361,6 +361,7 @@ func (app *App) handleCustomIndex(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 + "';")) }