We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d47c0 commit b772906Copy full SHA for b772906
python/pythonmonkey/builtin_modules/XMLHttpRequest-internal.py
@@ -93,7 +93,7 @@ def abort():
93
res.close()
94
95
# readyState HEADERS_RECEIVED
96
- responseData: XHRResponse = { # FIXME: PythonMonkey bug: the dict will be GCed if directly as an argument
+ processResponse({
97
'url': str(res.real_url),
98
'status': res.status,
99
'statusText': str(res.reason or ''),
@@ -102,8 +102,7 @@ def abort():
102
'getAllResponseHeaders': getAllResponseHeaders,
103
'abort': abort,
104
'contentLength': res.content_length or 0,
105
- }
106
- processResponse(responseData)
+ })
107
108
async for data in res.content.iter_any():
109
processBodyChunk(bytearray(data)) # PythonMonkey only accepts the mutable bytearray type
0 commit comments