Do not send "Connection: close" when requesting a tunnel. Fixes #32750 (#46070)

pull/52529/head
Matt Martz 6 years ago committed by ansibot
parent 60255efc32
commit 42cf50fbac

@ -0,0 +1,2 @@
bugfixes:
- 'urls - When validating SSL certs using an a non-SSL proxy, do not send "Connection: close" when requesting a tunnel. This prevents some proxy servers from dropping the connection (https://github.com/ansible/ansible/issues/32750)'

@ -663,7 +663,7 @@ class SSLValidationHandler(urllib_request.BaseHandler):
http://stackoverflow.com/questions/1087227/validate-ssl-certificates-with-python
http://techknack.net/python-urllib2-handlers/
'''
CONNECT_COMMAND = "CONNECT %s:%s HTTP/1.0\r\nConnection: close\r\n"
CONNECT_COMMAND = "CONNECT %s:%s HTTP/1.0\r\n"
def __init__(self, hostname, port):
self.hostname = hostname

Loading…
Cancel
Save