Skip to content

Commit 92fbc6e

Browse files
committed
optimize code
1 parent 136cbc9 commit 92fbc6e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/node-utility

src/utility.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ export async function getDownloadUrlFromGit(repo: string, folder: string, fileNa
269269
host: `git.github0null.io`,
270270
path: `/api/v1/repos/root/${repo}/contents/${folder}`,
271271
timeout: 3000,
272-
headers: { 'User-Agent': 'Mozilla/5.0' }
272+
headers: { 'User-Agent': 'Mozilla/5.0' },
273+
rejectUnauthorized: false, // ignore cert failed
273274
}, 'https');
274275

275276
if (res.success == false || res.content == undefined) {

0 commit comments

Comments
 (0)