summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-10-03 20:20:48 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-10-03 20:20:48 +0000
commit2848dd3b9e2fffc3be96853825437c389698bee1 (patch)
tree6802cf2529c58e3bca4bda722fd63d36bb87797f /src
parent87d9e61bf5ce5cacbe07a6d057bb8af6a19557f0 (diff)
Correctly set the Z flag in hts-cache/new.txt file (Peter)
Diffstat (limited to 'src')
-rw-r--r--src/htsback.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/htsback.c b/src/htsback.c
index 16c54d0..e21ab84 100644
--- a/src/htsback.c
+++ b/src/htsback.c
@@ -560,7 +560,6 @@ int back_finalize(httrackp* opt,cache_back* cache,struct_back* sback,int p) {
// unflag
}
}
- back[p].r.compressed=0;
#endif
/* Write mode to disk */
@@ -664,6 +663,11 @@ int back_finalize(httrackp* opt,cache_back* cache,struct_back* sback,int p) {
fprintf(cache->txt,LLintP,(LLint)back[p].r.totalsize);
fprintf(cache->txt,"\t%s\t",flags);
}
+
+#if HTS_USEZLIB
+ back[p].r.compressed=0;
+#endif
+
if (back[p].r.statuscode == HTTP_OK) {
if (back[p].r.size>=0) {
if (strcmp(back[p].url_fil,"/robots.txt") !=0 ) {