[PEAK] peak.web bugs

Radek Kanovsky rk at dat.cz
Wed Dec 10 05:08:26 EST 2003


Hi All,

It seems to me that zope response object insists on explicit HTTP status
assignment. Following patch on src/peak/web/resources.py helped.
Otherwise "599: No status set." is raised when serving some resource.


--- resources.py        5 Dec 2003 08:56:13 -0000       1.1.1.3
+++ resources.py        10 Dec 2003 09:54:41 -0000
@@ -432,6 +432,7 @@
         size = os.stat(self.filename).st_size
         response.setHeader('Content-Type', self.mime_type)
         response.setHeader('Content-Length', str(size))
+        response.setStatus('200')
 
         if interaction.request.method == 'GET':
             write = response.write



Regards,

RadekK



More information about the PEAK mailing list