logo       

Re: Patch for testbrowser.py: msg#00090

web.zope.z3base.five

Subject: Re: Patch for testbrowser.py

Daniel Nouri wrote:
> 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)
>

Brian,

since you added Five.testbrowser, perhaps you can say something about
this patch and, if you think it's sound, apply it to 1.4 and the trunk?

Thanks

Philipp


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise