diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 20:05:08 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 20:05:08 +0000 |
commit | 7ff6a85ec83ee365c501f0d4a5a52097579de6ab (patch) | |
tree | 619f25f0fbb1819bbb70da86fd852e4b895bace7 /src | |
parent | f732730b23e9aa920b61577ca540c7d619b67067 (diff) |
Do not check html consistency for errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/htscore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/htscore.c b/src/htscore.c index 1d1bc88..b342dc2 100644 --- a/src/htscore.c +++ b/src/htscore.c @@ -1044,8 +1044,9 @@ int httpmirror(char* url1, httrackp* opt) { // ------------------------------------ // BOGUS MIME TYPE HACK II (the revenge) // Check if we have a bogus MIME type - if ( (is_hypertext_mime(opt,r.contenttype, urlfil)) /* Is HTML or Js, .. */ - || (may_be_hypertext_mime(opt,r.contenttype, urlfil)) /* Is real media, .. */ + if (HTTP_IS_OK(r.statuscode) && + (is_hypertext_mime(opt,r.contenttype, urlfil) /* Is HTML or Js, .. */ + || may_be_hypertext_mime(opt,r.contenttype, urlfil)) /* Is real media, .. */ ) { if ((r.adr) && (r.size)) { unsigned int map[256]; |