R. David Murray added the comment:

The code you are modifying looks completely wrong-headed to me.  Unfortunately 
I don't have time to rewrite the cgi module right now :).  Given that, your fix 
looks fine: the first part of a multipart (up to the first inner boundary) is 
the 'preamble', which can contain pretty much arbitrary content, and in the 
context of cgi should indeed be completely ignored.  

Benjamin's suggested modification has the if logic reversed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to