This commit is contained in:
Daniel Wallace 2020-04-22 10:02:25 -05:00
parent 50a147592d
commit d9e2aeed58
No known key found for this signature in database
GPG Key ID: 9FD9048A8BD617F2

View File

@ -186,13 +186,15 @@ class CallbackResponse(responses.CallbackResponse):
else:
body = six.BytesIO(request.body)
req = Request.from_values(
path='?'.join([url.path, url.query]),
path="?".join([url.path, url.query]),
input_stream=body,
content_length=request.headers.get("Content-Length"),
content_type=request.headers.get("Content-Type"),
method=request.method,
base_url='{scheme}://{netloc}'.format(scheme=url.scheme, netloc=url.netloc),
headers=[(k, v) for k, v in six.iteritems(request.headers)]
base_url="{scheme}://{netloc}".format(
scheme=url.scheme, netloc=url.netloc
),
headers=[(k, v) for k, v in six.iteritems(request.headers)],
)
request = req
headers = self.get_headers()