21 Feb
2007
21 Feb
'07
8:47 p.m.
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