for plaintext posts add content-type header
This commit is contained in:
parent
689ced2ae4
commit
4557503256
@ -66,6 +66,8 @@ class Article:
|
||||
if 'filename' in self.j:
|
||||
hdr += 'Mime-Version: 1.0\n'
|
||||
hdr += 'Content-Type: multipart/mixed; boundary="{}"\n'.format(self.boundary)
|
||||
else:
|
||||
hdr += 'Content-Type: text/plain; encoding="UTF-8"\n'
|
||||
return hdr
|
||||
|
||||
def bodyPlain(self):
|
||||
|
Reference in New Issue
Block a user