Skip to content

Commit

Permalink
fix: ignore http scan while first page was https
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 15, 2020
1 parent 802635f commit be62808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scrap-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ module.exports = async (baseUrl, options = {}) => {
if (options.url.includes('/?SORT=')) return false; // bitrix sort
if (options.url.includes('/filter/clear/apply/')) return false; // bitrix filter

// http scan while first page was https
if(url.parse(options.url).protocol != protocol) return false;

return true;
},

Expand Down

0 comments on commit be62808

Please sign in to comment.