Skip to content

Commit 037a682

Browse files
committed
Add orinal response field to asyncio response status
1 parent 8c079cf commit 037a682

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pubnub/pubnub_asyncio.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def _request_helper(self, options_func, cancellation_event):
180180
origin=request_url.hostname,
181181
uuid=uuid,
182182
auth_key=auth_key,
183-
client_request=None
183+
client_request=None,
184+
client_response=response
184185
)
185186

186187
if body is not None and len(body) > 0:

pubnub/structures.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ def __init__(self, headers, pn_config):
6666

6767

6868
class ResponseInfo(object):
69-
def __init__(self, status_code, tls_enabled, origin, uuid, auth_key, client_request):
69+
def __init__(self, status_code, tls_enabled, origin, uuid, auth_key, client_request, client_response=None):
7070
self.status_code = status_code
7171
self.tls_enabled = tls_enabled
7272
self.origin = origin
7373
self.uuid = uuid
7474
self.auth_key = auth_key
7575
self.client_request = client_request
76+
self.client_response = client_response
7677

7778

7879
class Envelope(object):

0 commit comments

Comments
 (0)