Convert to utf-8 before JSON decoding

This commit is contained in:
Dave St.Germain
2019-08-19 15:10:56 -04:00
parent 5ba4152cb6
commit 9d8db8e4ca
7 changed files with 7 additions and 7 deletions

View File

@@ -1633,7 +1633,7 @@ def financial_assistance(_request):
def financial_assistance_request(request):
"""Submit a request for financial assistance to Zendesk."""
try:
data = json.loads(request.body)
data = json.loads(request.body.decode('utf8'))
# Simple sanity check that the session belongs to the user
# submitting an FA request
username = data['username']