wok view busybox/stuff/busybox-1.27-httpd.u @ rev 20208

Down busybox (1.27.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 23 11:16:33 2018 +0100 (2018-02-23)
parents
children
line source
1 From 2b400d9b2b7309d6e479102fc3ce646e893058a5 Mon Sep 17 00:00:00 2001
2 From: Denys Vlasenko <vda.linux@googlemail.com>
3 Date: Mon, 18 Sep 2017 13:09:11 +0200
4 Subject: httpd: fix handling of range requests
6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
7 ---
8 networking/httpd.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/networking/httpd.c b/networking/httpd.c
12 index e072f23..5e32fc9 100644
13 --- a/networking/httpd.c
14 +++ b/networking/httpd.c
15 @@ -2337,7 +2337,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
16 if (STRNCASECMP(iobuf, "Range:") == 0) {
17 /* We know only bytes=NNN-[MMM] */
18 char *s = skip_whitespace(iobuf + sizeof("Range:")-1);
19 - if (is_prefixed_with(s, "bytes=") == 0) {
20 + if (is_prefixed_with(s, "bytes=")) {
21 s += sizeof("bytes=")-1;
22 range_start = BB_STRTOOFF(s, &s, 10);
23 if (s[0] != '-' || range_start < 0) {
24 --
25 cgit v0.12