You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the reason is that FileResponse calls its super __init__ first, which applies the default charset, and since the webob.Response.content_type property preserves parameters if the new value does not contain any, the charset doesn't go away when FileResponse sets the proper content type later on.
The text was updated successfully, but these errors were encountered:
Hurm. This is actually a bug in webob, it does not apply only to FileResponses, but to normal Responses, too.
I've opened a bug there (Pylons/webob#130), closing here.
I guess the reason is that
FileResponse
calls its super__init__
first, which applies the default charset, and since thewebob.Response.content_type
property preserves parameters if the new value does not contain any, the charset doesn't go away when FileResponse sets the proper content type later on.The text was updated successfully, but these errors were encountered: