From: Guido van Rossum Date: Tue, 29 Aug 1995 19:19:51 +0000 (+0000) Subject: encoding can be content-transfer-encoding or content-encoding X-Git-Tag: v1.3~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5cf179f028f0a6f69aca873f18551a60d7dbc8c;p=thirdparty%2FPython%2Fcpython.git encoding can be content-transfer-encoding or content-encoding --- diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 71d0087d2e0a..06c38281e343 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()