]> sjero.net Git - wget/blobdiff - src/html-url.c
[svn] Mark the content from the <link src="..."> tag as expecting HTML.
[wget] / src / html-url.c
index 4216c796629c0688b8c54b8b7a96ef5a7d69de4f..fcf1e812e9ce97450ea128fd4423b4c5c2424529 100644 (file)
@@ -45,6 +45,7 @@ so, delete this exception statement from your version.  */
 #include "utils.h"
 #include "hash.h"
 #include "convert.h"
+#include "recur.h"             /* declaration of get_urls_html */
 
 #ifndef errno
 extern int errno;
@@ -480,6 +481,10 @@ tag_handle_link (int tagid, struct taginfo *tag, struct map_context *ctx)
              && (0 == strcasecmp (rel, "stylesheet")
                  || 0 == strcasecmp (rel, "shortcut icon")))
            up->link_inline_p = 1;
+         else
+           /* The external ones usually point to HTML pages, such as
+              <link rel="next" href="..."> */
+           up->link_expect_html = 1;
        }
     }
 }