Pylons/webob — Issue #31: If content_type is provided in Response() then a charset=utf-8 is always upended to content_type
Author: nkunal
Created: 2012-02-22 22:32:15+00:00
State: open

>>> response=Response(request=request, status=200, content_type='text/plain;charset=ISO-8859-1')
>>> print response
200 OK
Content-Type: text/plain;charset=ISO-8859-1; charset=UTF-8

However if content_type is provided later then the extra charset is not added.

>>> response=Response(request=request, status=200)
>>>
>>>
>>> response.content_type = 'text/plain;charset=ISO-8859-1'
>>> print response
200 OK
Content-Length: 0
Content-Type: text/plain;charset=ISO-8859-1