Skip to content

Commit

Permalink
Merge pull request #7 from dabapps/use-raw-response
Browse files Browse the repository at this point in the history
Use raw response data to fix encoding issues
  • Loading branch information
j4mie authored Jul 22, 2019
2 parents 4b4049c + 514a205 commit e78a74d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ def proxy(path):
headers=request.headers,
data=request.get_data(),
allow_redirects=False,
stream=True,
)
return Response(
response=downstream_response.content,
response=downstream_response.raw.data,
status=downstream_response.status_code,
headers=downstream_response.raw.headers.items(),
)
Expand Down

0 comments on commit e78a74d

Please sign in to comment.