X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fres.c;h=679a47468d68e5d2407726484ccfe546fa55be63;hb=4a08094db88011153adadbf995103770b20d2a31;hp=4b0ff82ba5b5a15ca4cae87e607ea2ac37f016e6;hpb=d5e283b1a75c5f8249300b465b4e7b55130bec49;p=wget diff --git a/src/res.c b/src/res.c index 4b0ff82b..679a4746 100644 --- a/src/res.c +++ b/src/res.c @@ -1,5 +1,6 @@ /* Support for Robot Exclusion Standard (RES). - Copyright (C) 2001, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2001, 2006, 2007, 2008, 2009 Free Software Foundation, + Inc. This file is part of Wget. @@ -562,7 +563,7 @@ res_retrieve_file (const char *url, char **file, struct iri *iri) else { err = retrieve_url (url_parsed, robots_url, file, NULL, NULL, NULL, - false, i); + false, i, false); url_free(url_parsed); } @@ -589,7 +590,7 @@ is_robots_txt_url (const char *url) bool ret = are_urls_equal (url, robots_url); xfree (robots_url); - + return ret; } @@ -625,10 +626,10 @@ test_is_robots_txt_url() { "http://www.yoyodyne.com/somepath/", false }, { "http://www.yoyodyne.com/somepath/robots.txt", false }, }; - - for (i = 0; i < sizeof(test_array)/sizeof(test_array[0]); ++i) + + for (i = 0; i < sizeof(test_array)/sizeof(test_array[0]); ++i) { - mu_assert ("test_is_robots_txt_url: wrong result", + mu_assert ("test_is_robots_txt_url: wrong result", is_robots_txt_url (test_array[i].url) == test_array[i].expected_result); }