Archived
1
0

for plaintext posts add content-type header

This commit is contained in:
no 2016-01-07 09:31:11 -05:00
parent 689ced2ae4
commit 4557503256

View File

@ -66,6 +66,8 @@ class Article:
if 'filename' in self.j: if 'filename' in self.j:
hdr += 'Mime-Version: 1.0\n' hdr += 'Mime-Version: 1.0\n'
hdr += 'Content-Type: multipart/mixed; boundary="{}"\n'.format(self.boundary) hdr += 'Content-Type: multipart/mixed; boundary="{}"\n'.format(self.boundary)
else:
hdr += 'Content-Type: text/plain; encoding="UTF-8"\n'
return hdr return hdr
def bodyPlain(self): def bodyPlain(self):