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.
This commit is contained in:
Tim Möhlmann 2024-06-14 07:40:05 +02:00 committed by GitHub
parent a7b5355580
commit da4e683bd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,6 +108,7 @@ func main() {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Header().Set("content-type", "application/json")
w.Write(data)
}