Fix error handling

This commit is contained in:
Ayato 2024-03-03 16:19:32 +09:00
parent 8045e4b919
commit 0b750134a3
No known key found for this signature in database
GPG key ID: 56E05AE09DBA012D

View file

@ -589,7 +589,10 @@ func AuthResponseFormPost(res http.ResponseWriter, redirectURI string, response
res.Header().Set("Cache-Control", "no-store")
res.WriteHeader(http.StatusOK)
buf.WriteTo(res)
_, err = buf.WriteTo(res)
if err != nil {
return oidc.ErrServerError().WithParent(err)
}
return nil
}