Skip to content

Commit 2752856

Browse files
committed
Fix CodeQL and rebase errors.
1 parent f505160 commit 2752856

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mock/http.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
1414
function http_mock() {
1515
log.warn('mocking http requests to s3');
1616

17-
const baseHostname = 's3.us-east-1.amazonaws.com';
1817
const basePath = `${os.tmpdir()}/mock`;
1918

20-
nock(new RegExp('^\.*' + baseHostname))
19+
nock(new RegExp('([a-z0-9]+[.])*s3[.]us-east-1[.]amazonaws[.]com'))
2120
.persist()
2221
.get(() => true) //a function that always returns true is a catch all for nock
2322
.reply(

0 commit comments

Comments
 (0)