ib-lundgren / flask-oauthprovider

Create a secure OAuth provider easily, powered by OAuthLib
BSD 3-Clause "New" or "Revised" License
86 stars 21 forks source link

Avoid unnecessarily decoding body data. #8

Closed datalogics-kam closed 11 years ago

datalogics-kam commented 11 years ago

In one case we had, the request body contained JPEG data with UTF-8 violations, causing exceptions.

Since the body is only part of the OAuth signature if it's www-form-urlencoded, avoid decoding it in other cases.

ib-lundgren commented 11 years ago

Indeed. Thanks for doing it =)