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

updated libiodbc and libiodbc-dev (3.52.7 -> 3.52.12)
author Hans-G?nter Theisgen
date Thu Apr 11 14:44:37 2019 +0100 (2019-04-11)
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