Comment 10 for bug 143873

Revision history for this message
Tres Seaver (tseaver) wrote :

> = Comment - Entry #9 by ajung on May 26, 2007 9:43 pm

> getPreferredCharsets() returns an empty list if HTTP_ACCEPT_CHARSET is
> not present in the request. There is a dedicated test for this case in
> test_httpcharsets.py. I can't see how it can return 'iso-8859-15' or even
> 'utf-8'?!

A Zope2 request *always* says that it has *any* header starting with
'HTTP_', which defeats that test.