diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-07-14 06:55:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 06:55:49 (GMT) |
commit | 490295d651d04ec3b3eff2a2cda7501191bad78a (patch) | |
tree | e03fd7df2983bc6a97620c49ea3bbadf50e2aa7a /Lib/http/client.py | |
parent | 025995feadaeebeef5d808f2564f0fd65b704ea5 (diff) | |
download | cpython-490295d651d04ec3b3eff2a2cda7501191bad78a.zip cpython-490295d651d04ec3b3eff2a2cda7501191bad78a.tar.gz cpython-490295d651d04ec3b3eff2a2cda7501191bad78a.tar.bz2 |
gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (#105628)
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r-- | Lib/http/client.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 3d98e4e..b35b1d6 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -970,13 +970,12 @@ class HTTPConnection: received from the proxy server to the CONNECT request sent to set the tunnel. - If the CONNECT request was not sent, the method returns - an empty dictionary. + If the CONNECT request was not sent, the method returns None. """ return ( _parse_header_lines(self._raw_proxy_headers) if self._raw_proxy_headers is not None - else {} + else None ) def connect(self): |