httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: protocol/1329: Apache will send wrong/invalid Content-length headers [PATCH] update
Date Wed, 29 Oct 1997 21:07:46 GMT
On Tue, Oct 28, 1997 at 04:18:04PM -0800, Dean Gaudet wrote:
> Looks correct, but I haven't tested yet.

I still get an inconsistent response:

    GET /robots.txt HTTP/1.1
    Host: localhost:8080
    Range: bytes=1000-2000

    HTTP/1.1 200 OK
    Date: Wed, 29 Oct 1997 20:54:02 GMT
    Server: Apache/1.3b3-dev PHP/FI-2.0b12
    Last-Modified: Tue, 28 Oct 1997 10:27:06 GMT
    ETag: "570-aa-3455bdfa"
    Content-Length: 170
    Content-Type: text/plain
    ....

This is OK. But for the next request, I also expect to get a 200, not a 206:

    GET /robots.txt HTTP/1.1
    Host: localhost:8080
    Range: bytes=-1000

    HTTP/1.1 206 Partial Content
	     ^^^^^^^^^^^^^^^^^^^ should be: 200 OK
    Date: Wed, 29 Oct 1997 20:53:42 GMT
    Server: Apache/1.3b3-dev PHP/FI-2.0b12
    Last-Modified: Tue, 28 Oct 1997 10:27:06 GMT
    ETag: "570-aa-3455bdfa"
    Content-Length: 170
    Content-Range: bytes 0-169/170
			 ^^^^^^^^^should be omitted, since full file served
    Content-Type: text/plain

Please check the appended patch for a fix.

  Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message