http: fix superfluous null line in range request header
At least the apache sever is very unhappy with that extra null line and will take more than ten seconds in responding to each range request, which slows down a lot the entire http file transfer process or even time out.
This commit is contained in:
parent
f4d35d49e3
commit
abf9beb7d6
1 changed files with 1 additions and 2 deletions
|
@ -381,9 +381,8 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial)
|
||||||
ptr = nb->tail;
|
ptr = nb->tail;
|
||||||
grub_snprintf ((char *) ptr,
|
grub_snprintf ((char *) ptr,
|
||||||
sizeof ("Range: bytes=XXXXXXXXXXXXXXXXXXXX-"
|
sizeof ("Range: bytes=XXXXXXXXXXXXXXXXXXXX-"
|
||||||
"\r\n"
|
|
||||||
"\r\n"),
|
"\r\n"),
|
||||||
"Range: bytes=%" PRIuGRUB_UINT64_T "-\r\n\r\n",
|
"Range: bytes=%" PRIuGRUB_UINT64_T "-\r\n",
|
||||||
offset);
|
offset);
|
||||||
grub_netbuff_put (nb, grub_strlen ((char *) ptr));
|
grub_netbuff_put (nb, grub_strlen ((char *) ptr));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue