pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 178 forks source link

do not server error on non-json auth attempt #70

Closed peterlada closed 4 years ago

peterlada commented 8 years ago

Fix for issue #58

request.get_json() returns None if request content type is not application/json, it is not handled more gracefully than a 500 Server Error.

dequis commented 8 years ago

Heh, I was about to PR the same thing. @mattupstate this is a straightforward merge IMO.

alexmensch commented 7 years ago

Any chance we could merge this one? 😄

sreejeet commented 5 years ago

Looks like a simple merge, why is this one still not merged? Is there more to be done here? I could contribute if required.

peterlada commented 4 years ago

Seems like most people use PyJWT nowadays, closing this abandoned PR.