encoding can be content-transfer-encoding or content-encoding

This commit is contained in:
Guido van Rossum 1995-08-29 19:19:51 +00:00
parent ca44540bc8
commit a5cf179f02
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ class Message(rfc822.Message):
def __init__(self, fp, seekable = 1):
rfc822.Message.__init__(self, fp, seekable)
self.encodingheader = \
self.getheader('content-transfer-encoding')
self.getheader('content-transfer-encoding') or \
self.getheader('content-encoding')
self.typeheader = \
self.getheader('content-type')
self.parsetype()