httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: cvs commit: httpd-test/perl-framework/t/protocol nntp-like.t
Date Thu, 30 Sep 2004 01:20:49 GMT
--On Wednesday, September 29, 2004 3:39 PM +0100 Joe Orton 
<jorton@redhat.com> wrote:

> OK, the difference is in the handling of an empty Content-Length header.
> The glibc strtoll does not return an error for an empty string, as C99
> requires, and so ap_http_filter treats it exactly as "Content-Length:
> 0".
>
> I guess the strto* on your platform does return an error for this case:
> I'd say a 400 is a better error than a 413 for "Content-Length:\r\n" but
> 413 is clearly better than 200, so I've fixed ap_http_filter in HEAD.

FWIW, I had failures with Darwin and FreeBSD (might have ran it on Solaris 
too, but can't recall).  Yah, expecting 200 was just plainly wrong in this 
case.  I do think 413 is a bit arbitrary, but is clearly more correct than 
200.  -- justin

Mime
View raw message