Skip to content
Permalink
Browse files

Fixes broken links to check for 404s

  • Loading branch information...
davidmerfield committed Aug 29, 2019
1 parent 5c44833 commit 81aa2ad53dcb9cd081256a5eeb62e6f7757c6539
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/util/broken.js
@@ -37,12 +37,11 @@ function main(url, options, callback) {
request(uri, function(err, res, body) {
if (err) return callback(err);

if (res.statusCode !== 200) {
if (res.statusCode == 404) {
var basePath = require("url").parse(base).pathname;
results[basePath] = results[basePath] || [];
results[basePath].push({
url: require("url").parse(url).pathname,
status: res.statusCode
url: require("url").parse(url).pathname
});
}

0 comments on commit 81aa2ad

Please sign in to comment.
You can’t perform that action at this time.