Skip to content

Commit

Permalink
Fixed logout body parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
daystram committed Jan 15, 2021
1 parent c87f725 commit a475e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ratify-be/controllers/oauth/authorize.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func POSTLogout(c *gin.Context) {
var err error
// fetch request info
var logoutRequest datatransfers.LogoutRequest
if err = c.ShouldBindJSON(&logoutRequest); err != nil {
if err = c.ShouldBind(&logoutRequest); err != nil {
c.JSON(http.StatusBadRequest, datatransfers.APIResponse{Error: err.Error()})
return
}
Expand Down

0 comments on commit a475e28

Please sign in to comment.