Skip to content

Commit da4e683

Browse files
authored
fix(example): set content-type in the userinfo response (#614)
This change sets the `content-type` header to `application/json` for the response sent to the browser in the app example. This enables pretty-printing of the userinfo json document in at least Chromium.
1 parent a7b5355 commit da4e683

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/client/app/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func main() {
108108
http.Error(w, err.Error(), http.StatusInternalServerError)
109109
return
110110
}
111+
w.Header().Set("content-type", "application/json")
111112
w.Write(data)
112113
}
113114

0 commit comments

Comments
 (0)