[Zope-Checkins] CVS: Zope/lib/python/ZServer - HTTPResponse.py:1.43.8.6

Jens Vagelpohl jens at dataflake.org
Sat Oct 1 09:31:21 EDT 2005


Update of /cvs-repository/Zope/lib/python/ZServer
In directory cvs.zope.org:/tmp/cvs-serv23168

Modified Files:
      Tag: Zope-2_7-branch
	HTTPResponse.py 
Log Message:
- revert unwanted checkin


=== Zope/lib/python/ZServer/HTTPResponse.py 1.43.8.5 => 1.43.8.6 ===
--- Zope/lib/python/ZServer/HTTPResponse.py:1.43.8.5	Sat Oct  1 09:18:19 2005
+++ Zope/lib/python/ZServer/HTTPResponse.py	Sat Oct  1 09:30:51 2005
@@ -72,11 +72,9 @@
                 self.status == 200:
             self.setStatus('nocontent')
 
-        # add content length if not streaming or if the status is 
-        # not 304, where it's not allowed (see RFC 2616)
+        # add content length if not streaming
         if not headers.has_key('content-length') and \
-                not self._streaming and \
-                self.status not in (304,):
+                not self._streaming:
             self.setHeader('content-length',len(body))
 
 



More information about the Zope-Checkins mailing list