Skip to content

Commit 7005b1f

Browse files
committed
#17678: Remove the use of a deprecated method http/cookiejar.py. Changing the
usage of get_origin_req_host() to origin_req_host. Patch by Wei-Cheng Pan
2 parents fa5ef18 + d9fbf36 commit 7005b1f

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
@@ -30,6 +30,9 @@ Core and Builtins
3030
Library
3131
-------
3232

33+
- Issue #17678: Remove the use of deprecated method in http/cookiejar.py.
34+
Changing the usage of get_origin_req_host() to origin_req_host.
35+
3336
- Issue #17666: Fix reading gzip files with an extra field.
3437

3538
- Issue #16475: Support object instancing, recursion and interned strings

0 commit comments

Comments
 (0)