From d9fbf36bbd9e19c2973dae507f0a522c62ec7be9 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 9 Apr 2013 07:07:59 -0700 Subject: #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 --- Lib/http/cookiejar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/http/cookiejar.py') diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index 901e762f0e..ddb79c5020 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 -- cgit v1.2.1