[Zope-Checkins] CVS: Products/StandardCacheManagers -
AcceleratedHTTPCacheManager.py:1.11.68.3
Tres Seaver
tseaver at zope.com
Fri Jan 14 14:58:11 EST 2005
Update of /cvs-repository/Products/StandardCacheManagers
In directory cvs.zope.org:/tmp/cvs-serv17904/lib/python/Products/StandardCacheManagers
Modified Files:
Tag: Zope-2_7-branch
AcceleratedHTTPCacheManager.py
Log Message:
- Collector #1657: pass appropriate 'Host:' header to accelerator
cache when PURGEing an expired resource.
=== Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py 1.11.68.2 => 1.11.68.3 ===
--- Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py:1.11.68.2 Sat May 22 05:18:11 2004
+++ Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py Fri Jan 14 14:57:40 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