From a475e2841fe10091090b97886d8c3a505881481b Mon Sep 17 00:00:00 2001 From: Danny August Ramaputra Date: Fri, 15 Jan 2021 14:02:06 +1000 Subject: [PATCH] Fixed logout body parsing --- ratify-be/controllers/oauth/authorize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratify-be/controllers/oauth/authorize.go b/ratify-be/controllers/oauth/authorize.go index 1555072..99655cb 100644 --- a/ratify-be/controllers/oauth/authorize.go +++ b/ratify-be/controllers/oauth/authorize.go @@ -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 }