HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: gzip flag in summary not working (+proposed patch)
Author: Xavier Roche
Date: 10/03/2012 22:21
 
> From what I understand this is because the
> compressed flag is set to 0 after compression in
> htsback.c, and it seems like the diff below fixes
> the problem:

Thanks - patch applied! (slightly modified)

===================================================================
--- htsback.c   (revision 121)
+++ htsback.c   (working copy)
@@ -560,7 +560,6 @@
                                                // unflag
                                        }
                                }
-                               back[p].r.compressed=0;
 #endif

                                /* Write mode to disk */
@@ -664,6 +663,11 @@
                                       
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 ) {

 
Reply Create subthread


All articles

Subject Author Date
gzip flag in summary not working (+proposed patch)

10/01/2012 22:52
Re: gzip flag in summary not working (+proposed patch)

10/03/2012 22:21




f

Created with FORUM 2.0.11