Sophie

Sophie

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

m2crypto-0.16-9.el5.src.rpm

Patch by James Bowes <jbowes@redhat.com>.

--- M2Crypto/httpslib.pybak	2009-03-11 12:55:16.000000000 -0400
+++ M2Crypto/httpslib.py	2009-03-11 12:55:34.000000000 -0400
@@ -126,7 +126,7 @@
                 raise ValueError, "unknown protocol for: %s" % url
         self._real_host = host
         self._real_port = port
-        HTTPSConnection.putrequest(self, method, url, skip_host, skip_accept_encoding)
+        HTTPSConnection.putrequest(self, method, rest, skip_host, skip_accept_encoding)
 
     def putheader(self, header, value):
         # Store the auth header if passed in.
--- M2Crypto/m2urllib2.pybak	2009-03-11 11:16:16.000000000 -0400
+++ M2Crypto/m2urllib2.py	2009-03-11 12:07:36.000000000 -0400
@@ -63,7 +63,7 @@
         # request.
         headers["Connection"] = "close"
         try:
-            h.request(req.get_method(), req.get_full_url(), req.data, headers)
+            h.request(req.get_method(), req.get_selector(), req.data, headers)
             r = h.getresponse()
         except socket.error, err: # XXX what error?
             raise URLError(err)