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:
parent
d81a8d5f56
commit
170a469533
@ -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>
|
2014-11-09 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
* http.c (gethttp): Remove redundant condition evaluation
|
* http.c (gethttp): Remove redundant condition evaluation
|
||||||
|
@ -2776,6 +2776,9 @@ read_header:
|
|||||||
/* Mark as successfully retrieved. */
|
/* Mark as successfully retrieved. */
|
||||||
*dt |= RETROKF;
|
*dt |= RETROKF;
|
||||||
xfree_null (type);
|
xfree_null (type);
|
||||||
|
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE)
|
||||||
|
CLOSE_FINISH (sock);
|
||||||
|
else
|
||||||
CLOSE_INVALIDATE (sock); /* would be CLOSE_FINISH, but there
|
CLOSE_INVALIDATE (sock); /* would be CLOSE_FINISH, but there
|
||||||
might be more bytes in the body. */
|
might be more bytes in the body. */
|
||||||
xfree (head);
|
xfree (head);
|
||||||
|
Loading…
Reference in New Issue
Block a user