Skip to content

Commit

Permalink
Reuse query var
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronius committed Jan 29, 2021
1 parent 59a4506 commit 435fb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gothic/gothic.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var GetState = func(req *http.Request) string {
if params.Encode() == "" && req.Method == http.MethodPost {
return req.FormValue("state")
}
return req.URL.Query().Get("state")
return params.Get("state")
}

/*
Expand Down

0 comments on commit 435fb83

Please sign in to comment.