diff options
author | Florrie <towerofnix@gmail.com> | 2018-12-22 14:36:54 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-12-22 14:36:54 -0400 |
commit | dad157a7e36668b78d865d93c66e5a9fd324773d (patch) | |
tree | f2e749f1d5baa553425720776996c421cab098a1 | |
parent | 5e743aec52ad22ab36ba1dbcca68ddc1cad14240 (diff) |
More http crawler tweaking
-rw-r--r-- | crawlers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawlers.js b/crawlers.js index 8583d5c..fc1cccf 100644 --- a/crawlers.js +++ b/crawlers.js @@ -75,8 +75,8 @@ function crawlHTTP(absURL, opts = {}, internals = {}) { name = name.trim() let base - if (path.extname(absURL)) { - base = path.dirname(absURL) + '/' + if (path.extname(absURLObj.pathname)) { + base = absURLObj.origin + path.dirname(absURLObj.pathname) + '/' } else { base = absURL } |