Skip to content

Commit

Permalink
fix(discoverUrl): ignore basic authentication in url (#58)
Browse files Browse the repository at this point in the history
ignore basic authentication in url
  • Loading branch information
Grant Unwin authored and lgraubner committed Feb 21, 2019
1 parent 2fbefdc commit 21d9be5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/discoverResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = (buffer, queueItem) => {

// remove anchors
href = href.replace(/(#.*)$/, '');

//remove basic authentication
href = href.replace(/^\/?([^/]*@)/, '');

// handle "//"
if (/^\/\//.test(href)) {
Expand Down

0 comments on commit 21d9be5

Please sign in to comment.