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>
|
||||
|
||||
* http.c (gethttp): Remove redundant condition evaluation
|
||||
|
@ -2776,7 +2776,10 @@ read_header:
|
||||
/* Mark as successfully retrieved. */
|
||||
*dt |= RETROKF;
|
||||
xfree_null (type);
|
||||
CLOSE_INVALIDATE (sock); /* would be CLOSE_FINISH, but there
|
||||
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);
|
||||
return RETRUNNEEDED;
|
||||
|
Loading…
Reference in New Issue
Block a user