fix(example): set content-type in the userinfo response

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-13 18:23:46 +03:00
parent a7b5355580
commit 52f368f2ba

View file

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