Update thermokarst/jwt
This commit is contained in:
parent
edb73c80f3
commit
69a588bd38
2 changed files with 2 additions and 2 deletions
2
Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go
generated
vendored
2
Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go
generated
vendored
|
@ -141,7 +141,7 @@ func (m *Middleware) Authenticate() http.Handler {
|
|||
b := make(map[string]string, 0)
|
||||
contentType := r.Header.Get("content-type")
|
||||
switch contentType {
|
||||
case "application/x-www-form-urlencoded":
|
||||
case "application/x-www-form-urlencoded", "application/x-www-form-urlencoded; charset=UTF-8":
|
||||
identity, verify := r.FormValue(m.identityField), r.FormValue(m.verifyField)
|
||||
if identity == "" || verify == "" {
|
||||
return &jwtError{
|
||||
|
|
Reference in a new issue