wok diff busybox/stuff/busybox-1.27-httpd.u @ rev 22501
updated aspell-pl (6.0_20061121-0 -> 6.0_20191230-0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 09:49:31 2020 +0100 (2020-01-01) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.27-httpd.u Wed Jan 01 09:49:31 2020 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +From 2b400d9b2b7309d6e479102fc3ce646e893058a5 Mon Sep 17 00:00:00 2001 1.5 +From: Denys Vlasenko <vda.linux@googlemail.com> 1.6 +Date: Mon, 18 Sep 2017 13:09:11 +0200 1.7 +Subject: httpd: fix handling of range requests 1.8 + 1.9 +Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> 1.10 +--- 1.11 + networking/httpd.c | 2 +- 1.12 + 1 file changed, 1 insertion(+), 1 deletion(-) 1.13 + 1.14 +diff --git a/networking/httpd.c b/networking/httpd.c 1.15 +index e072f23..5e32fc9 100644 1.16 +--- a/networking/httpd.c 1.17 ++++ b/networking/httpd.c 1.18 +@@ -2337,7 +2337,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) 1.19 + if (STRNCASECMP(iobuf, "Range:") == 0) { 1.20 + /* We know only bytes=NNN-[MMM] */ 1.21 + char *s = skip_whitespace(iobuf + sizeof("Range:")-1); 1.22 +- if (is_prefixed_with(s, "bytes=") == 0) { 1.23 ++ if (is_prefixed_with(s, "bytes=")) { 1.24 + s += sizeof("bytes=")-1; 1.25 + range_start = BB_STRTOOFF(s, &s, 10); 1.26 + if (s[0] != '-' || range_start < 0) { 1.27 +-- 1.28 +cgit v0.12 1.29 +