summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-04-28 19:37:04 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-04-28 19:37:04 +0000
commit94cb4e54ba44c8dd0284a5b2780bd7ca080b34ac (patch)
treefc80c5674c51bdfb8ad4386ef157cc6d95088e22 /src
parent4a3d446d8d7a8459ec1e441327c926733a573e61 (diff)
cache_add(): do not refuse to write zero-length files
Diffstat (limited to 'src')
-rw-r--r--src/htscache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/htscache.c b/src/htscache.c
index 689154f..6680094 100644
--- a/src/htscache.c
+++ b/src/htscache.c
@@ -427,8 +427,10 @@ void cache_add(httrackp* opt,cache_back* cache,const htsblk *r,char* url_adr,cha
return; // erreur (sauf robots.txt)
}
+ /*
if (r->size <= 0) // taille <= 0
return; // refusé..
+ */
// Mettre les *donées* en cache ?
if (is_hypertext_mime(opt,r->contenttype, url_fil)) // html, mise en cache des données et