Skip to content

Commit

Permalink
Fix "isn't numeric" error in range request header parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbloke committed Aug 12, 2021
1 parent e020a3e commit 286ecda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/stream/stream_raw.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 286ecda

Please sign in to comment.