mirror of https://github.com/golang-jwt/jwt.git
megabytes
This commit is contained in:
parent
71677efc53
commit
51b517e77a
2
jwt.go
2
jwt.go
|
@ -150,7 +150,7 @@ func ParseFromRequest(req *http.Request, keyFunc Keyfunc) (token *Token, err err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look for "access_token" parameter
|
// Look for "access_token" parameter
|
||||||
req.ParseMultipartForm(10e9)
|
req.ParseMultipartForm(10e6)
|
||||||
if tokStr := req.Form.Get("access_token"); tokStr != "" {
|
if tokStr := req.Form.Get("access_token"); tokStr != "" {
|
||||||
return Parse(tokStr, keyFunc)
|
return Parse(tokStr, keyFunc)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue