eeaec5caae169706b4945f25ff8caa92eac66813 galt Mon May 13 16:04:10 2019 -0700 htmlCheck needs to support 303 because Nature magazine is using them now. diff --git src/utils/htmlCheck/htmlCheck.c src/utils/htmlCheck/htmlCheck.c index 07b1aad..f46266c 100644 --- src/utils/htmlCheck/htmlCheck.c +++ src/utils/htmlCheck/htmlCheck.c @@ -239,31 +239,31 @@ } } else { char *url = htmlExpandUrl(page->url, link->name); if (url != NULL) { boolean isLocal = sameHost(page->url, url); if (isLocal || !justLocal) { if (!hashLookup(uniqHash, url)) { struct hash *headerHash = newHash(8); int status = netUrlHeadExt(url, "GET", headerHash); hashAdd(uniqHash, url, NULL); - if (status != 200 && status != 302 && status != 301) + if (status != 200 && status != 303 && status != 302 && status != 301) warn("%d from %s", status, url); else { if (depth > 1 && isLocal) { char *contentType = hashFindValUpperCase(headerHash, "Content-Type:"); if (contentType != NULL && startsWith("text/html", contentType)) { char *fullText = slurpUrl(url); if (fullText != NULL) { struct htmlPage *newPage = htmlPageParse(url, fullText); if (newPage != NULL && newPage->status->status==200) {