diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-04-09 14:07:59 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-04-09 14:07:59 (GMT) |
commit | d9fbf36bbd9e19c2973dae507f0a522c62ec7be9 (patch) | |
tree | 10416537525d4508cc49ef83fcf963db4105af49 /Lib/http/cookiejar.py | |
parent | d281c73536949b81097adccec86bdd77207fd66f (diff) | |
download | cpython-d9fbf36bbd9e19c2973dae507f0a522c62ec7be9.zip cpython-d9fbf36bbd9e19c2973dae507f0a522c62ec7be9.tar.gz cpython-d9fbf36bbd9e19c2973dae507f0a522c62ec7be9.tar.bz2 |
#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
Diffstat (limited to 'Lib/http/cookiejar.py')
-rw-r--r-- | Lib/http/cookiejar.py | 2 |
1 files changed, 1 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 |