[Zope-Checkins] CVS: Zope/ZServer - HTTPResponse.py:1.32.16.1

Andreas Jung andreas@zope.com
Mon, 26 Nov 2001 12:37:09 -0500


Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv8343/ZServer

Modified Files:
      Tag: Zope-2_4-branch
	HTTPResponse.py 
Log Message:
added creation of ETAG header


=== Zope/ZServer/HTTPResponse.py 1.32 => 1.32.16.1 ===
         if headers.has_key('status'):
             del headers['status']
-        
+       
+
+        if not headers.has_key("etag"):
+            self.setHeader('ETAG','')
+ 
         # add zserver headers
         append('Server: %s' % self._server_version) 
         append('Date: %s' % build_http_date(time.time()))