Jostein Leira wrote at 2007-2-21 02:05 -0800:
> header_present = 'HTTP_ACCEPT_CHARSET' in self.request
> header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys()
>I think this is a bug. After doing that change, IE6 and IE7 behaved
"HTTPRequest.keys" is a very costly method.
In the case, that "in" has a bug (and does not work reliably),
then "self.request.has_key('HTTP_ACCEPT_CHARSET')" should
be used (even better would be to implement "in" by calling "has_key").
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -