Ticket #1449 (closed defect: fixed)

Opened 6 months ago

Last modified 2 months ago

"Accept-Ranges: bytes" when range-request is disabled

Reported by: oded.noam@mobixell.com Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.18
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 1

Description

When the server is configured to deny range requests, e.g. by putting the following statement in the configuration file:

$HTTP["url"] =~ "\.flv$" {
  server.range-requests = "disable"
}

When accessing a file that matches the disabled pattern, using either the HEAD or GET methods, the server replies

HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
ETag: "2038925148"
Last-Modified: Mon, 12 Nov 2007 12:22:07 GMT
Content-Length: 9286325
Date: Tue, 13 Nov 2007 17:56:27 GMT
Server: lighttpd/1.4.18

Note the Accept-Ranges: bytes header: delivery of the range is indeed disabled, but the server stated that range is supported (in contradiction to section 14.5 of RFC 2068). This confuses clients that try to handle ranges.

Attachments

lighttpd_bug.pcap (36.1 kB) - added by oded.noam@mobixell.com on 11/13/2007 03:16:31 PM.
partial capture of a session in which "Range" support is indicated but disabled
0013-Do-not-add-Accept-Ranges-header-if-range-request-is.patch (0.9 kB) - added by stbuehler on 02/18/2008 12:15:03 AM.

Change History

11/13/2007 03:16:31 PM changed by oded.noam@mobixell.com

  • attachment lighttpd_bug.pcap added.

partial capture of a session in which "Range" support is indicated but disabled

12/17/2007 07:20:43 AM changed by Rusty C. Shackleford

I'm writing one such client that is attempting to handle range requests correctly and just now came across this independently.

02/18/2008 12:15:03 AM changed by stbuehler

  • attachment 0013-Do-not-add-Accept-Ranges-header-if-range-request-is.patch added.

02/26/2008 04:31:30 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2090]


Add/Change #1449 ("Accept-Ranges: bytes" when range-request is disabled)




Change Properties
Action