Comment 2 for bug 353805

Revision history for this message
Martin Pitt (pitti) wrote :

This even happens if I supply an explicit content type:

>>> b.addAttachment(comment='', data=open('/home/martin/thread.txt').read(), description='test353805', filename='test353805', is_patch=False, content_type='application/octet-stream')

with application/octet-stream it shouldn't make any assumptions about the content at least.

Also, in the Launchpad web UI I could attach thread.txt just fine, and it's even treated as text/plain (which is good for stack traces).

Is there a quick workaround for this?