Update thermokarst/jwt
This commit is contained in:
parent
edb73c80f3
commit
69a588bd38
2 changed files with 2 additions and 2 deletions
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
|
@ -51,7 +51,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/thermokarst/jwt",
|
"ImportPath": "github.com/thermokarst/jwt",
|
||||||
"Rev": "ce0235af93669b32c6ba1b7cde9f3632b76a6c91"
|
"Rev": "9d3638db601e499627271fe06273aab0aa67e7b3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/crypto/bcrypt",
|
"ImportPath": "golang.org/x/crypto/bcrypt",
|
||||||
|
|
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)
|
b := make(map[string]string, 0)
|
||||||
contentType := r.Header.Get("content-type")
|
contentType := r.Header.Get("content-type")
|
||||||
switch contentType {
|
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)
|
identity, verify := r.FormValue(m.identityField), r.FormValue(m.verifyField)
|
||||||
if identity == "" || verify == "" {
|
if identity == "" || verify == "" {
|
||||||
return &jwtError{
|
return &jwtError{
|
||||||
|
|
Reference in a new issue