Visitar URL original
gh-69152: Add _proxy_response_headers attribute to HTTPConnection by nametkin · Pull Request #26152 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactoring test
  • Loading branch information
nametkin committed Apr 29, 2023
commit 48d91190884576ade1fedc586528bfbfba6f179a
5 changes: 3 additions & 2 deletions Lib/test/test_httplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2392,8 +2392,9 @@ def test_tunnel_debuglog(self):

def test_proxy_response_headers(self):
expected_header = ('X-Dummy', '1')
response_text = 'HTTP/1.0 200 OK\r\n{}: {}\r\n\r\n'.format(
*expected_header
response_text = (
'HTTP/1.0 200 OK\r\n'
'{0}\r\n\r\n'.format(':'.join(expected_header))
)

self.conn._create_connection = self._create_connection(response_text)
Expand Down