[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#286017: Patch correction



Hrm, of course the patch should be: 

--- old/httplink.py     2004-05-31 11:52:43.000000000 -0700
+++ new/httplink.py     2005-01-18 17:52:24.000000000 -0800
@@ -60,11 +60,7 @@
 
     (username, passwd, realhost, port) = parse_host(host)
 
-    h = httplib.HTTP()
-    if port:
- h.connect(realhost, port)
-    else:
- h.connect(realhost)
+    h = httplib.HTTPConnection(realhost, port)
 
     h.putrequest('HEAD', document)
     if username and passwd:
@@ -75,7 +71,8 @@
 
     h.endheaders()
 
-    errcode, errmsg, headers = h.getreply()
+    r = h.getresponse()
+    errcode, errmsg, headers = r.status, r.reason, r.msg
     h.close()
     debugio.write(errcode,2)
     debugio.write(errmsg,2)



Reply to: