Commit c216b718 authored by Hanno Schlichting's avatar Hanno Schlichting

Made Five.testbrowser compatible with mechanize 0.1.7b.

parent 9edd2ed0
......@@ -219,6 +219,8 @@ Zope Changes
Bugs Fixed
- Made Five.testbrowser compatible with mechanize 0.1.7b.
- Ensure that response header values cannot embed CRLF pairs, which
violate the HTTP spec (RFC 2616).
......
......@@ -92,13 +92,13 @@ class PublisherMechanizeBrowser(mechanize.Browser):
default_others = ['_http_error', '_http_request_upgrade',
'_http_default_error']
default_features = ['_redirect', '_cookies', '_referer', '_refresh',
'_equiv', '_basicauth', '_digestauth', '_seek' ]
'_equiv', '_basicauth', '_digestauth' ]
def __init__(self, *args, **kws):
inherited_handlers = ['_unknown', '_http_error',
'_http_request_upgrade', '_http_default_error', '_basicauth',
'_digestauth', '_redirect', '_cookies', '_referer',
'_refresh', '_equiv', '_seek', '_gzip']
'_refresh', '_equiv', '_gzip']
self.handler_classes = {"http": PublisherHTTPHandler}
for name in inherited_handlers:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment