HTTPResponse too strict with text mime-types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Medium
|
Unassigned | ||
zope.publisher |
Invalid
|
Medium
|
Unassigned |
Bug Description
In zope.publisher.
def _implicitResult
...
if not content_
raise ValueError(
...
content_type += ';charset=%s' %encoding
...
IMHO, the content type test here is much too strict.
Many mime types don't start with 'text/' and are still text mime types. E.g. application/xml, application/
To my best knowledge those mime types can also have a charset parameter appended. E.g. 'application/xml; charset=UTF-8'.
Unfortunately, I couldn't find the reference documentation about that or a definitive list of mime types that can have a charset parameter, so this needs some further research..
Andrew
Changed in zope3: | |
status: | New → Confirmed |
Changed in zope.publisher: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in zope3: | |
status: | Confirmed → Won't Fix |
This is a duplicate of http:// www.zope. org/Collectors/ Zope3-dev/ 668