Skip to content

Commit

Permalink
decode json body as utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
keotl committed Mar 21, 2020
1 parent fbe4c98 commit cdd75c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jivago/wsgi/request/json_serialization_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class JsonSerializationFilter(Filter):
@Override
def doFilter(self, request: Request, response: Response, chain: FilterChain):
if is_application_json(request.headers['Content-Type']) and len(request.body) > 0:
request.body = json.loads(request.body)
request.body = json.loads(request.body.decode("utf-8"))

chain.doFilter(request, response)

Expand Down

0 comments on commit cdd75c9

Please sign in to comment.