Skip to content

Commit

Permalink
src/http.c: Revert commit d81a8d5
Browse files Browse the repository at this point in the history
The removal of the 'redundant' condition was a failure.
Fixes: #43876
Reported-by: Sean Jensen-Grey <seanj@xyke.com>
  • Loading branch information
rockdaboot committed Dec 27, 2014
1 parent 6f62bc5 commit 103cbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
}

if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|| (!opt.timestamping && statcode == HTTP_STATUS_OK
|| (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
&& contrange == 0 && contlen >= 0 && hs->restval >= contlen))
{
/* If `-c' is in use and the file has been fully downloaded (or
Expand Down

0 comments on commit 103cbf1

Please sign in to comment.