mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
* src/http.c (gethttp): Accept 206 for request w/o Range header
Fixes: #49319
This commit is contained in:
parent
3d1d5b317b
commit
807d1c7d94
@ -3817,7 +3817,7 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs,
|
||||
goto cleanup;
|
||||
}
|
||||
if ((contrange != 0 && contrange != hs->restval)
|
||||
|| (H_PARTIAL (statcode) && !contrange))
|
||||
|| (H_PARTIAL (statcode) && !contrange && hs->restval))
|
||||
{
|
||||
/* The Range request was somehow misunderstood by the server.
|
||||
Bail out. */
|
||||
|
Loading…
Reference in New Issue
Block a user