summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/http/cookiejar.py2
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index 901e762..ddb79c5 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -704,7 +704,7 @@ def is_third_party(request):
"""
req_host = request_host(request)
- if not domain_match(req_host, reach(request.get_origin_req_host())):
+ if not domain_match(req_host, reach(request.origin_req_host)):
return True
else:
return False
diff --git a/Misc/NEWS b/Misc/NEWS
index 9d61c32..744c715 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@ Core and Builtins
Library
-------
+- Issue #17678: Fix DeprecationWarning in the http/cookiejar.py by changing the
+ usage of get_origin_req_host() to origin_req_host.
+
- Issue #17666: Fix reading gzip files with an extra field.
- Issue #17502: Process DEFAULT values in mock side_effect that returns iterator.