summaryrefslogtreecommitdiff
path: root/src/htsparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsparse.c')
-rw-r--r--src/htsparse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 1d83add..146f8e9 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -784,7 +784,7 @@ int htsparse(htsmoduleStruct* str, htsmoduleStructExtended* stre) {
if (strnotempty(r->charset)) {
HT_ADD("<!-- Added by HTTrack --><meta http-equiv=\"content-type\" content=\"text/html;charset=");
HT_ADD(r->charset);
- HT_ADD("\"><!-- /Added by HTTrack -->");
+ HT_ADD("\" /><!-- /Added by HTTrack -->");
HT_ADD(eol);
}
}
@@ -1663,7 +1663,9 @@ int htsparse(htsmoduleStruct* str, htsmoduleStructExtended* stre) {
char *tag_attr_start = adr;
// si nofollow ou un stop a été déclenché, réécrire tous les liens en externe
- if ((nofollow) || (opt->state.stop))
+ if ((nofollow)
+ || (opt->state.stop && /* force follow not to lose previous cache data */ !opt->is_update)
+ )
p_nocatch=1;
// écrire codebase avant, flusher avant code