fnord: Content-range off by one

Gerrit Pape <[email protected]> Sun, 30 Jan 2005 12:37:47 +0000
Newsgroups gmane.comp.web.fnord
Message-ID <20050130123646.14365.qmail@f970456cfbdb76.315fe32.mid.smarden.org>
Hi, Joachim Berdal Haga found a bug in fnord's handling of content-range
requests, and also suggests a patch to fix it.  Please see

 http://bugs.debian.org/292376

Thanks Joachim.  Regards, Gerrit.

----- Forwarded message from Joachim Berdal Haga <[email protected]> -----

Subject: Bug#292376: fnord: Content-range off by one
Date: Wed, 26 Jan 2005 18:16:07 +0100
From: Joachim Berdal Haga <[email protected]>
To: Debian Bug Tracking System <[email protected]>

Package: fnord
Version: 1.8-4
Severity: normal


When a partial file is requested from fnord, the content
returned is 1 byte to short. The reply headers are also
inconsistent. Example: when bytes 0-499 are requested,
the reply says

Content-Length: 499
Content-Range: bytes 0-499/3492946

and 499 bytes are returned. However it should return 500
bytes (see f.x. http://www.freesoft.org/CIE/RFC/2068/178.htm),
since the range is inclusive.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-ac5
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- no debconf information

----- End forwarded message -----

-- 
Open projects at http://smarden.org/pape/.