--On Wednesday, September 29, 2004 3:39 PM +0100 Joe Orton <[EMAIL PROTECTED]> 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

Reply via email to