1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Honour Keep-Alive when range not satisfiable

This commit is contained in:
Darshit Shah 2014-11-09 14:33:13 +05:30
parent d81a8d5f56
commit 170a469533
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-09 Darshit Shah <darnir@gmail.com>
* http.c (gethttps): Honour keep-alive when server responds with a 416 Range
not Satisfiable
2014-11-09 Darshit Shah <darnir@gmail.com>
* http.c (gethttp): Remove redundant condition evaluation

View File

@ -2776,6 +2776,9 @@ read_header:
/* Mark as successfully retrieved. */
*dt |= RETROKF;
xfree_null (type);
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE)
CLOSE_FINISH (sock);
else
CLOSE_INVALIDATE (sock); /* would be CLOSE_FINISH, but there
might be more bytes in the body. */
xfree (head);