* src/http.c (gethttp): Accept 206 for request w/o Range header

Fixes: #49319
This commit is contained in:
Tim Rühsen 2016-10-12 14:59:36 +02:00
parent 3d1d5b317b
commit 807d1c7d94

View File

@ -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. */