Skip to content

Commit 21d9be5

Browse files
Grant Unwinlgraubner
authored andcommitted
fix(discoverUrl): ignore basic authentication in url (#58)
ignore basic authentication in url
1 parent 2fbefdc commit 21d9be5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/discoverResources.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ module.exports = (buffer, queueItem) => {
2626

2727
// remove anchors
2828
href = href.replace(/(#.*)$/, '');
29+
30+
//remove basic authentication
31+
href = href.replace(/^\/?([^/]*@)/, '');
2932

3033
// handle "//"
3134
if (/^\/\//.test(href)) {

0 commit comments

Comments
 (0)