Skip to content

Commit 6296419

Browse files
authored
Merge branch 'main' into Xmader/feat/WtfPM
2 parents b69680a + 926313b commit 6296419

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/pythonmonkey/builtin_modules/XMLHttpRequest-internal.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def abort():
9393
res.close()
9494

9595
# readyState HEADERS_RECEIVED
96-
responseData: XHRResponse = { # FIXME: PythonMonkey bug: the dict will be GCed if directly as an argument
96+
processResponse({
9797
'url': str(res.real_url),
9898
'status': res.status,
9999
'statusText': str(res.reason or ''),
@@ -102,8 +102,7 @@ def abort():
102102
'getAllResponseHeaders': getAllResponseHeaders,
103103
'abort': abort,
104104
'contentLength': res.content_length or 0,
105-
}
106-
processResponse(responseData)
105+
})
107106

108107
async for data in res.content.iter_any():
109108
processBodyChunk(bytearray(data)) # PythonMonkey only accepts the mutable bytearray type

0 commit comments

Comments
 (0)