Skip to content

Commit a53bcef

Browse files
committed
Fix auth page content type
Fixes cesanta#172
1 parent 4f7154f commit a53bcef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth_server/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
349349

350350
// https://developers.google.com/identity/sign-in/web/server-side-flow
351351
func (as *AuthServer) doIndex(rw http.ResponseWriter, req *http.Request) {
352-
rw.Header().Set("Content-Type", "text-html; charset=utf-8")
352+
rw.Header().Set("Content-Type", "text/html; charset=utf-8")
353353
fmt.Fprintf(rw, "<h1>%s</h1>\n", as.config.Token.Issuer)
354354
if as.ga != nil {
355355
fmt.Fprint(rw, `<p><a href="/google_auth">Login with Google account</a></p>`)

0 commit comments

Comments
 (0)