Permalink
Browse files

Changed HTTPS tunneling not to send CRLF after proxy auth headers by …

…default (overridable by new send_crlf_after_proxy_auth_headers config variable)
  • Loading branch information...
1 parent f8dc44d commit 23dec71c086d92d7b3105cbc1d0a5de3c65e38e0 @mfschwartz mfschwartz committed May 11, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 boto/connection.py
View
@@ -649,7 +649,12 @@ def proxy_ssl(self):
if self.proxy_user and self.proxy_pass:
for k, v in self.get_proxy_auth_header().items():
sock.sendall("%s: %s\r\n" % (k, v))
- sock.sendall("\r\n")
+ # See discussion about this config option at
+ # https://groups.google.com/forum/?fromgroups#!topic/boto-dev/teenFvOq2Cc
+ if config.getbool('Boto', 'send_crlf_after_proxy_auth_headers', False):
+ sock.sendall("\r\n")
+ else:
+ sock.sendall("\r\n")
resp = httplib.HTTPResponse(sock, strict=True, debuglevel=self.debug)
resp.begin()

0 comments on commit 23dec71

Please sign in to comment.