Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
ffefcfd7
Commit
ffefcfd7
authored
Sep 10, 2018
by
Gurvinder Singh
Browse files
set content type to json, as API server complains about it otherwise
parent
6b5eeda7
Changes
1
Hide whitespace changes
Inline
Side-by-side
openid_jwks.go
View file @
ffefcfd7
...
@@ -48,6 +48,7 @@ func getJWKS() *JWKS {
...
@@ -48,6 +48,7 @@ func getJWKS() *JWKS {
func
(
jwks
*
JWKS
)
jwksHandler
()
http
.
Handler
{
func
(
jwks
*
JWKS
)
jwksHandler
()
http
.
Handler
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
w
.
Header
()
.
Set
(
"Content-Type"
,
"application/json"
)
encoder
:=
json
.
NewEncoder
(
w
)
encoder
:=
json
.
NewEncoder
(
w
)
encoder
.
Encode
(
jwks
)
encoder
.
Encode
(
jwks
)
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment