﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16201	When Content-Length is 0, MultiPartParser violates RFC2616	asd	nobody	"RFC 2616 says that: ""Any Content-Length greater than or equal to zero is a valid value."" http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13

Currently {{{ MultiPartParser }}} doesn't handle ""Content-Length: 0"".

The patch I've attached returns an empty request.POST in {{{ MultiPartParser.parser() }}} if the ""Content-Length: 0"" instead of raising an exception on
{{{ MultiPartParser.__init__() }}}.

I've also added the tests for this particular case in requests/tests.
( {{{ ./runtests.py --settings=test_sqlite requests.RequestsTests.test_POST_multipart_with_content_length_zero }}} )
"	Bug	closed	HTTP handling	1.3-rc	Normal	fixed	http multipart	Anand Kumria	Ready for checkin	1	0	0	0	0	0
