[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache returns negative Content-Length for a 2G file



Hi folks, here is what I met today:

1. Under apache doc root:
dd if=/dev/zero of=foo bs=1M count=2048

2. And:

clay sandbox:~ [1053:1]% telnet 127.0.0.1 80
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HEAD /foo HTTP/1.0

HTTP/1.1 200 OK
Date: Wed, 05 Nov 2003 09:45:43 GMT
Server: Apache/1.3.28 (Debian GNU/Linux)
Last-Modified: Wed, 05 Nov 2003 09:37:48 GMT
ETag: "793-80000000-3fa8c4ec"
Accept-Ranges: bytes
Content-Length: -2147483648
Connection: close
Content-Type: text/plain; charset=iso-8859-1

Connection closed by foreign host.


The negative 'Content-Length: -2147483648' is not right, which broke my
wget.

Any hint folks?


-Isaac

PS: plz kindly CC me, since I'm not on this list.

-- 

Isaac Claymore             |   clay@linux.net
Exavio Inc.                |   Home: 86-10-51736063
Beijing, China             |   Mobile: 86-13911256050
http://clay.objectis.net/  |   Office: 86-10-62788188-1039

Attachment: signature.asc
Description: Digital signature


Reply to: