[hunchentoot-devel] Bug (+ fix) in (maybe-handle-range-header ...)

Hi, I've found that <audio> elements won't play (except in Firefox, for some reason) when served by Hunchentoot and that it's because of a small error in the function 'maybe-handle-range-header' in the file 'misc.lisp': (setf (return-code*) +http-partial-content+ bytes-to-send (- end start) ... should be: (setf (return-code*) +http-partial-content+ bytes-to-send (1+ (- end start)) ... Cheers, Paul. PS. While investigating this I also noticed that my version of Hunchentoot is 1.2.7 but it's reported as 1.2.5 in the http headers it sends.

Paul. thanks for reporting the bug. It is already fixed, please use Hunchentoot 1.2.9 or later. That version also has the version number problem that you've mentioned fixed. -Hans On Fri, Jan 18, 2013 at 1:00 PM, PL Hayes <plh@golux.podzone.net> wrote:
Hi,
I've found that <audio> elements won't play (except in Firefox, for some reason) when served by Hunchentoot and that it's because of a small error in the function 'maybe-handle-range-header' in the file 'misc.lisp':
(setf (return-code*) +http-partial-content+ bytes-to-send (- end start) ...
should be:
(setf (return-code*) +http-partial-content+ bytes-to-send (1+ (- end start)) ...
Cheers, Paul.
PS. While investigating this I also noticed that my version of Hunchentoot is 1.2.7 but it's reported as 1.2.5 in the http headers it sends.
______________________________**_________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/**mailman/listinfo/tbnl-devel<http://common-lisp.net/mailman/listinfo/tbnl-devel>

Thanks Hans. Sorry I didn't know there is a 1.2.9 version - I was relying on Quicklisp to keep me reasonably up to date. On 18/01/13 13:00, Hans Hübner wrote:
Paul.
thanks for reporting the bug. It is already fixed, please use Hunchentoot 1.2.9 or later. That version also has the version number problem that you've mentioned fixed.
-Hans
On Fri, Jan 18, 2013 at 1:00 PM, PL Hayes <plh@golux.podzone.net <mailto:plh@golux.podzone.net>> wrote:
Hi,
I've found that <audio> elements won't play (except in Firefox, for some reason) when served by Hunchentoot and that it's because of a small error in the function 'maybe-handle-range-header' in the file 'misc.lisp':
(setf (return-code*) +http-partial-content+ bytes-to-send (- end start) ...
should be:
(setf (return-code*) +http-partial-content+ bytes-to-send (1+ (- end start)) ...
Cheers, Paul.
PS. While investigating this I also noticed that my version of Hunchentoot is 1.2.7 but it's reported as 1.2.5 in the http headers it sends.
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net <mailto:tbnl-devel@common-lisp.net> http://common-lisp.net/mailman/listinfo/tbnl-devel
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

Paul, I made the 1.2.9 release recently, it should be available in Quicklisp soon. Cheers, Hans On Fri, Jan 18, 2013 at 2:11 PM, PL Hayes <plh@golux.podzone.net> wrote:
Thanks Hans. Sorry I didn't know there is a 1.2.9 version - I was relying on Quicklisp to keep me reasonably up to date.
On 18/01/13 13:00, Hans Hübner wrote:
Paul.
thanks for reporting the bug. It is already fixed, please use Hunchentoot 1.2.9 or later. That version also has the version number problem that you've mentioned fixed.
-Hans
On Fri, Jan 18, 2013 at 1:00 PM, PL Hayes <plh@golux.podzone.net <mailto: plh@golux.podzone.net>**> wrote:
Hi,
I've found that <audio> elements won't play (except in Firefox, for some reason) when served by Hunchentoot and that it's because of a small error in the function 'maybe-handle-range-header' in the file 'misc.lisp':
(setf (return-code*) +http-partial-content+ bytes-to-send (- end start) ...
should be:
(setf (return-code*) +http-partial-content+ bytes-to-send (1+ (- end start)) ...
Cheers, Paul.
PS. While investigating this I also noticed that my version of Hunchentoot is 1.2.7 but it's reported as 1.2.5 in the http headers it sends.
______________________________**_________________ tbnl-devel site list tbnl-devel@common-lisp.net <mailto:tbnl-devel@common-**lisp.net<tbnl-devel@common-lisp.net>
______________________________**_________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/**mailman/listinfo/tbnl-devel<http://common-lisp.net/mailman/listinfo/tbnl-devel>
______________________________**_________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/**mailman/listinfo/tbnl-devel<http://common-lisp.net/mailman/listinfo/tbnl-devel>
participants (2)
-
Hans Hübner
-
PL Hayes