Project

General

Profile

Bug #1449

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

Added by Anonymous about 9 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Missing in 1.5.x:

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.

-- oded.noam

lighttpd_bug.pcap - partial capture of a session in which "Range" support is indicated but disabled -- oded.noam (36.1 KB) Anonymous, 2007-11-13 15:16

0013-Do-not-add-Accept-Ranges-header-if-range-request-is.patch View (903 Bytes) stbuehler, 2008-02-18 00:15

Associated revisions

Revision 87145864 (diff)
Added by stbuehler almost 9 years ago

r2095@chromobil: stefan | 2008-02-26 17:11:21 +0100
Fix #1449: Do not add Accept-Ranges header if range-request is disabled

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2090 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by Anonymous almost 9 years ago

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

-- Rusty C. Shackleford

#2 Updated by stbuehler almost 9 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2090

Also available in: Atom