[Patches] [ python-Patches-597593 ] tiptoe around broken Content-type
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Aug 2002 07:47:59 -0700
Patches item #597593, was opened at 2002-08-20 00: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: Closed
>Resolution: Fixed
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
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-08-20 10:47
Message:
Logged In: YES
user_id=12800
Patches applied to cvs.
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-08-20 09:12
Message:
Logged In: YES
user_id=12800
RFC 2045, section 5.2 states that syntactically invalid
Content-Type: headers should use the text/plain default.
Thanks for pointing out this bug, I'll work out a more
thorough fix.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=597593&group_id=5470