in .9.6 setting headers like this worked:
response.headers['Content-Type'] = 'application/ms-excel'
in .9.7 , anything i do to them is met with this
AttributeError: You cannot access Response.unicode_body unless charset
is set
looking at the new webob docs,
i tried doing
response.charset = 'utf8'
but that didn't work either.
so then i tried setting response.content_type , which worked
BUT
i also needed to set response.headers['Content-Disposition']
response.content_disposition ended up working, but its not documented
in webob
and these changes in how headers are affected are wholly undocumented
in the migration docs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---