[Patches] [ python-Patches-597593 ] tiptoe around broken Content-type
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 19 Aug 2002 21:10:57 -0700
Patches item #597593, was opened at 2002-08-19 23:10
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=597593&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: tiptoe around broken Content-type
Initial Comment:
I have absolutely no idea how common this might be or whether it is
correct or not, but I encountered a mail message today with this
Content-type header:
Content-type: text
The email.Generator.Generator class barfs trying to split the content
type:
main, sub = ctype.split('/')
The attached patch solves this particular problem. I don't know if it
falls into the "be relaxed in what you accept" rubric or not, but the
attached patch got me by this particular bump.
Skip
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=597593&group_id=5470