Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 920fa0f0e28c0a57d683a2dc3f252bab > files > 7

m2crypto-0.16-9.el5.src.rpm

Patch by Karl Grindley <kgrindley@ll.mit.edu>.

--- m2crypto/M2Crypto/httpslib.py	2007-09-18 12:18:39.000000000 -0400
+++ m2crypto-0.16/M2Crypto/httpslib.py	2007-09-18 12:15:50.000000000 -0400
@@ -163,6 +163,7 @@
     def _get_connect_msg(self):
         """ Return an HTTP CONNECT request to send to the proxy. """
         msg = "CONNECT %s:%d HTTP/1.1\r\n" % (self._real_host, self._real_port)
+        msg = msg + "Host: %s:%d\r\n" % (self._real_host, self._real_port)
         if self._proxy_auth:
             msg = msg + "%s: %s\r\n" % (self._AUTH_HEADER, self._proxy_auth) 
         msg = msg + "\r\n"