mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
Set content-type on auth_token.js
This commit is contained in:
parent
510542b159
commit
ac49153071
1 changed files with 1 additions and 0 deletions
|
@ -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 + "';"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue