mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
Merge pull request #102 from skeltoac/auth-token-content-type
Set content-type on auth_token.js
This commit is contained in:
commit
ddbaa983c0
@ -379,6 +379,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 + "';"))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user