[z3-five] Patch for testbrowser.py

Daniel Nouri daniel.nouri at gmail.com
Mon Apr 10 22:25:11 CEST 2006


This patch adds 'Set-Cache' headers to the headers that are forwarded to
PublisherResponse.  Before, these headers would be suppressed.


Index: testbrowser.py
===================================================================
--- testbrowser.py      (revision 66810)
+++ testbrowser.py      (working copy)
@@ -35,6 +35,7 @@
         headers.sort()
         headers.insert(0, ('Status', "%s %s" % (status, reason)))
         headers = '\r\n'.join('%s: %s' % h for h in headers)
+        headers += '\r\n' + '\r\n'.join(real_response._cookie_list())
         content = real_response.body
         return testing.PublisherResponse(content, headers, status, reason)



More information about the z3-five mailing list