Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9fbf36

Browse files
committed
#17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
of get_origin_req_host() to origin_req_host. Patch by Wei-Cheng Pan
1 parent d281c73 commit d9fbf36

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def is_third_party(request):
704704
705705
"""
706706
req_host = request_host(request)
707-
if not domain_match(req_host, reach(request.get_origin_req_host())):
707+
if not domain_match(req_host, reach(request.origin_req_host)):
708708
return True
709709
else:
710710
return False

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Core and Builtins
2121
Library
2222
-------
2323

24+
- Issue #17678: Fix DeprecationWarning in the http/cookiejar.py by changing the
25+
usage of get_origin_req_host() to origin_req_host.
26+
2427
- Issue #17666: Fix reading gzip files with an extra field.
2528

2629
- Issue #17502: Process DEFAULT values in mock side_effect that returns iterator.

0 commit comments

Comments
 (0)