[Zope-Checkins] CVS: Products/StandardCacheManagers -
AcceleratedHTTPCacheManager.py:1.11.68.2.18.1
Tres Seaver
tseaver at zope.com
Fri Jan 14 14:20:09 EST 2005
Update of /cvs-repository/Products/StandardCacheManagers
In directory cvs.zope.org:/tmp/cvs-serv8998/lib/python/Products/StandardCacheManagers
Modified Files:
Tag: tseaver-collector_1657-branch
AcceleratedHTTPCacheManager.py
Log Message:
- Commit fix for Collector #1657 on a branch for merge after 2.7.4-final.
=== Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py 1.11.68.2 => 1.11.68.2.18.1 ===
--- Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py:1.11.68.2 Sat May 22 05:18:11 2004
+++ Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py Fri Jan 14 14:19:39 2005
@@ -62,12 +62,10 @@
p = path[:-1] + ob_path
else:
p = path + ob_path
- h = httplib.HTTP(host)
- h.putrequest('PURGE', p)
- h.endheaders()
- errcode, errmsg, headers = h.getreply()
- h.getfile().read() # Mandatory for httplib?
- results.append('%s %s' % (errcode, errmsg))
+ h = httplib.HTTPConnection(host)
+ h.request('PURGE', p)
+ r = h.getresponse()
+ results.append('%s %s' % (r.status, r.reason))
return 'Server response(s): ' + ';'.join(results)
def ZCache_get(self, ob, view_name, keywords, mtime_func, default):
More information about the Zope-Checkins
mailing list