mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:32:25 -05:00
just use gin GetQuery() function now we don't delete the query param
This commit is contained in:
parent
fcc6af163c
commit
7a6d8dfb14
1 changed files with 1 additions and 2 deletions
|
|
@ -151,8 +151,7 @@ func (m *nollamas) Serve(c *gin.Context) {
|
|||
|
||||
// Check query to see if an in-progress
|
||||
// challenge solution has been provided.
|
||||
query := c.Request.URL.Query()
|
||||
nonce := query.Get("nollamas_solution")
|
||||
nonce, _ := c.GetQuery("nollamas_solution")
|
||||
if nonce == "" || len(nonce) > 20 {
|
||||
|
||||
// An invalid solution string, just
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue