Skip to content

Commit e1373df

Browse files
authored
Merge pull request #9 from sjhewitt/patch-1
Decode POSTed JSON data using utf8
2 parents 7801c11 + 6cf0ace commit e1373df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_graphql/graphqlview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def parse_body(self, request):
129129

130130
elif content_type == 'application/json':
131131
try:
132-
request_json = json.loads(request.data.decode())
132+
request_json = json.loads(request.data.decode('utf8'))
133133
assert isinstance(request_json, dict)
134134
return request_json
135135
except:

0 commit comments

Comments
 (0)