zanata/zanata-python-client — comment on commit a4b37148e44afb488d8a8db18ab32d179379d6a1
File:  line 0
By seanf:

It's best to apply a regex replace on "charset=", which preserves the previous mime type (eg application/x-publican), rather than completely overwriting the original Content-Type. Unless of course there is no Content-Type, in which case text/plain is okay.