Kaydet (Commit) a5cf179f authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst ca44540b
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment