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