Skip to content

Commit 09ce9e5

Browse files
authored
Merge pull request #43 from warren-bank/PR/add-httpresponse-url-attribute
[fix] AttributeError: 'HTTPResponse' object has no attribute 'url'
2 parents 2465ed1 + 2dd326d commit 09ce9e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyodide_http/_urllib.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def urlopen(url, *args, **kwargs):
5050
)
5151

5252
response = HTTPResponse(FakeSock(response_data))
53+
response.url = url
5354
response.begin()
5455
return response
5556

0 commit comments

Comments
 (0)