Update responses.py

This commit is contained in:
Ales Jirasek 2020-03-25 12:29:53 +01:00 committed by GitHub
parent 89ec335210
commit d79ad01e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ class RequestsOpenAPIResponseFactory(object):
def create(cls, response):
mimetype = response.headers.get('Content-Type')
return OpenAPIResponse(
data=response.raw,
data=response.content,
status_code=response.status_code,
mimetype=mimetype,
)