Fix error handling
This commit is contained in:
parent
8045e4b919
commit
0b750134a3
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue