From 9d3638db601e499627271fe06273aab0aa67e7b3 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 1 Dec 2015 16:54:57 -0700 Subject: [PATCH] Add additional url encoded case --- jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwt.go b/jwt.go index cd7aa7b..80c0707 100644 --- a/jwt.go +++ b/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{