wok-current diff busybox/stuff/busybox-1.27-httpd.u @ rev 20735
modified azpainter WGET_URL
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 09 17:28:45 2019 +0100 (2019-02-09) |
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 Sat Feb 09 17:28:45 2019 +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 +