From 286ecda3ea49727dc728ca81ceb71585660db8a8 Mon Sep 17 00:00:00 2001 From: Ian Cameron <1661072+mkbloke@users.noreply.github.com> Date: Thu, 12 Aug 2021 01:30:19 +0100 Subject: [PATCH] Fix "isn't numeric" error in range request header parsing --- modules/stream/stream_raw.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stream/stream_raw.pl b/modules/stream/stream_raw.pl index d1be2ac1f..a0d5b4cf9 100755 --- a/modules/stream/stream_raw.pl +++ b/modules/stream/stream_raw.pl @@ -120,7 +120,7 @@ if ($ENV{'HTTP_RANGE'}) { # Figure out the size of the requested chunk ($start, $end) = $ENV{'HTTP_RANGE'} =~ /bytes\W+(\d*)-(\d*)\W*$/; - if ($end < 1 || $end > $size) { + if ($end eq '' || $end < 1 || $end > $size) { $end = $size; } $size = $end - $start+1;