Comment 5 for bug 253745

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 253745] Re: Fail to parse boundary if multiple Content-Type headers are given

On Fri, 2008-08-01 at 16:05 +0000, John A Meinel wrote:
>
>
> Robert- How would you suggest diagnosing this? Change our urllib
> wrappers to recognize 2 Content-Type headers and abort with a message
> to
> the user?

I think this would be good.

> Do some sort of search to see:
>
> if found_boundary.startswith('--') and found_boundary[2:].rstrip()
> in
> expected_boundary
>
> Which would be a likely indication that we miss-parsed the
> expected_boundary string.

I don't know - is that a recurring pattern?

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.