Skip to content

Commit

Permalink
a5: [FIX] Fix HTTP status code for response in JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoel Domingues Junior committed Jan 13, 2019
1 parent daeac18 commit 719453d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func Login(c echo.Context) error {

format := c.QueryParam("format")
if format == "json" {
return c.JSON(http.StatusBadRequest, map[string]string{
return c.JSON(http.StatusOK, map[string]string{
"result": "success",
"username": userDataResult.Username,
"user_id": userDataResult.UserID,
Expand Down

0 comments on commit 719453d

Please sign in to comment.