mirror of
https://git.busybox.net/busybox.git
synced 2024-11-28 08:03:28 +08:00
httpd: emit correct content length on range requests past the end. Closes 4952
Signed-off-by: Rob Walker <rwalker@codeaurora.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
1d9e99b399
commit
7a4269329f
@ -1594,7 +1594,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what)
|
||||
}
|
||||
range_len = MAXINT(off_t);
|
||||
if (range_start >= 0) {
|
||||
if (!range_end) {
|
||||
if (!range_end || range_end > file_size - 1) {
|
||||
range_end = file_size - 1;
|
||||
}
|
||||
if (range_end < range_start
|
||||
|
Loading…
Reference in New Issue
Block a user