mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
encoding can be content-transfer-encoding or content-encoding
This commit is contained in:
parent
ca44540bc8
commit
a5cf179f02
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ class Message(rfc822.Message):
|
||||||
def __init__(self, fp, seekable = 1):
|
def __init__(self, fp, seekable = 1):
|
||||||
rfc822.Message.__init__(self, fp, seekable)
|
rfc822.Message.__init__(self, fp, seekable)
|
||||||
self.encodingheader = \
|
self.encodingheader = \
|
||||||
self.getheader('content-transfer-encoding')
|
self.getheader('content-transfer-encoding') or \
|
||||||
|
self.getheader('content-encoding')
|
||||||
self.typeheader = \
|
self.typeheader = \
|
||||||
self.getheader('content-type')
|
self.getheader('content-type')
|
||||||
self.parsetype()
|
self.parsetype()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue