summaryrefslogtreecommitdiff
path: root/src/htsback.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:03:26 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:03:26 +0000
commit0183f4dd84d8cc44d617fb48436881e79e2bf0f2 (patch)
treed475719783d1cecb39934b739895426ad2967df2 /src/htsback.c
parent1096a6b82c4110f7a15132c9a2b525899d62380c (diff)
httrack 3.44.1
Diffstat (limited to 'src/htsback.c')
-rw-r--r--src/htsback.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/htsback.c b/src/htsback.c
index 723ad60..c43df69 100644
--- a/src/htsback.c
+++ b/src/htsback.c
@@ -2150,10 +2150,12 @@ static int slot_can_be_cleaned(const lien_back* back) {
static int slot_can_be_finalized(httrackp* opt, const lien_back* back) {
return
- (back->r.is_write // not in memory (on disk, ready)
+ back->r.is_write // not in memory (on disk, ready)
&& !is_hypertext_mime(opt,back->r.contenttype, back->url_fil) // not HTML/hypertext
&& !may_be_hypertext_mime(opt,back->r.contenttype, back->url_fil) // may NOT be parseable mime type
- );
+ /* Has not been added before the heap saw the link, or now exists on heap */
+ && ( !back->early_add || hash_read(opt->hash,back->url_sav,"",0,opt->urlhack) >= 0 )
+ ;
}
void back_clean(httrackp* opt,cache_back* cache,struct_back* sback) {
@@ -3243,7 +3245,7 @@ void back_wait(struct_back* sback,httrackp* opt,cache_back* cache,TStamp stat_ti
/*
Solve "false" 416 problems
*/
- if (back[i].r.statuscode==416) { // 'Requested Range Not Satisfiable'
+ if (back[i].r.statuscode==HTTP_REQUESTED_RANGE_NOT_SATISFIABLE) { // 'Requested Range Not Satisfiable'
// Example:
// Range: bytes=2830-
// ->