Skip to content

Commit 722ee4f

Browse files
authored
Merge pull request davidallendj#14 from OpenCHAMI/allend/update-merge
Merge changes between forks and add aarch64 build
2 parents e0a8d43 + 0fa5ec2 commit 722ee4f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/server/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
137137
}
138138
})
139139
r.HandleFunc("/keys", func(w http.ResponseWriter, r *http.Request) {
140+
140141
var (
141142
p = params.AuthProvider
142143
jwks []byte
@@ -182,6 +183,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
182183
return
183184
}
184185

186+
w.Header().Set("Content-Type", "application/json")
185187
w.Write(jwks)
186188
})
187189
r.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) {
@@ -217,6 +219,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
217219
http.Redirect(w, r, "/error", http.StatusInternalServerError)
218220
return
219221
}
222+
w.Header().Set("Content-Type", "application/json")
220223
w.Write([]byte(accessToken))
221224
}
222225
})

0 commit comments

Comments
 (0)