diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-10-10 00:57:04 +0000 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-10-10 00:57:04 +0000 |
commit | 290e939f2e22d459d7e22f39e6a5660a8a2f4e96 (patch) | |
tree | 1fc5dd3f231985d644639f5f651ca55bd61e87c4 /Lib/email/message.py | |
parent | 0c7f9c96f5fbe8c445ccd3e2ee315f2e2f45a3ca (diff) | |
download | cpython-git-290e939f2e22d459d7e22f39e6a5660a8a2f4e96.tar.gz |
Merged revisions 75307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75307 | r.david.murray | 2009-10-09 20:13:32 -0400 (Fri, 09 Oct 2009) | 12 lines
Merged revisions 75301 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75301 | r.david.murray | 2009-10-09 17:50:54 -0400 (Fri, 09 Oct 2009) | 5 lines
Issue #7082: When falling back to the MIME 'name' parameter, the
correct place to look for it is the Content-Type header.
Patch by Darren Worrall.
........
................
Diffstat (limited to 'Lib/email/message.py')
-rw-r--r-- | Lib/email/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py index 412a550d27..d89e37e0b6 100644 --- a/Lib/email/message.py +++ b/Lib/email/message.py @@ -681,7 +681,7 @@ class Message: missing = object() filename = self.get_param('filename', missing, 'content-disposition') if filename is missing: - filename = self.get_param('name', missing, 'content-disposition') + filename = self.get_param('name', missing, 'content-type') if filename is missing: return failobj return utils.collapse_rfc2231_value(filename).strip() |