[Mono-dev] [PATCH] HttpRequest Content-Type and Content-Length fixes

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Nov 8 11:33:47 EST 2005


On Mon, 2005-11-07 at 17:03 -0800, Jason Diamond wrote:
> Hi.
> 
> The attached patch fixes two small bugs in HttpRequest related to
> POSTing "application/x-www-form-urlencoded" data.
> 
> The actual fixes involved modifying just two lines in HttpRequest.cs.
> The bulk of the patch is two new test fixtures added to
> HttpRequestTest.cs.

The Math.Max (...) line is not needed as it is inside a 'if
(content_length > 0)' and total is going to be either 0 or
buffer.Length.

The rest is ok to commit.

Thanks.

-Gonzalo





More information about the Mono-devel-list mailing list