Update thermokarst/jwt

This commit is contained in:
Matthew Dillon 2015-12-01 16:55:41 -07:00
parent edb73c80f3
commit 69a588bd38
2 changed files with 2 additions and 2 deletions

2
Godeps/Godeps.json generated
View file

@ -51,7 +51,7 @@
},
{
"ImportPath": "github.com/thermokarst/jwt",
"Rev": "ce0235af93669b32c6ba1b7cde9f3632b76a6c91"
"Rev": "9d3638db601e499627271fe06273aab0aa67e7b3"
},
{
"ImportPath": "golang.org/x/crypto/bcrypt",

View file

@ -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{