From 69a588bd38a2cc5b28f1799abac561d6d615544b Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 1 Dec 2015 16:55:41 -0700 Subject: [PATCH] Update thermokarst/jwt --- Godeps/Godeps.json | 2 +- Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index fec937d..9e7e0a1 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -51,7 +51,7 @@ }, { "ImportPath": "github.com/thermokarst/jwt", - "Rev": "ce0235af93669b32c6ba1b7cde9f3632b76a6c91" + "Rev": "9d3638db601e499627271fe06273aab0aa67e7b3" }, { "ImportPath": "golang.org/x/crypto/bcrypt", diff --git a/Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go b/Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go index cd7aa7b..80c0707 100644 --- a/Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go +++ b/Godeps/_workspace/src/github.com/thermokarst/jwt/jwt.go @@ -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{