Jostein Leira wrote at 2007-2-21 02:05 -0800:
> ...
> header_present = 'HTTP_ACCEPT_CHARSET' in self.request
> to
>
> header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys()
>
>I think this is a bug. After doing that change, IE6 and IE7 behaved
>consistently.
"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").
--
Dieter
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )