summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-29 19:19:51 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-29 19:19:51 (GMT)
commita5cf179f028f0a6f69aca873f18551a60d7dbc8c (patch)
treeb7b32900597374c4dcde588e74cd97575a0ff3b6 /Lib
parentca44540bc8f6da4bb58c5503827fd63e5d678269 (diff)
downloadcpython-a5cf179f028f0a6f69aca873f18551a60d7dbc8c.zip
cpython-a5cf179f028f0a6f69aca873f18551a60d7dbc8c.tar.gz
cpython-a5cf179f028f0a6f69aca873f18551a60d7dbc8c.tar.bz2
encoding can be content-transfer-encoding or content-encoding
Diffstat (limited to 'Lib')
-rw-r--r--Lib/mimetools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py
index 71d0087..06c3828 100644
--- a/Lib/mimetools.py
+++ b/Lib/mimetools.py
@@ -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()