mirror of https://github.com/python/cpython
encoding can be content-transfer-encoding or content-encoding
This commit is contained in:
parent
ca44540bc8
commit
a5cf179f02
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue