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

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{