Skip to content

Commit

Permalink
Merge pull request #59 from contractify/dependabot/npm_and_yarn/actio…
Browse files Browse the repository at this point in the history
…ns/http-client-2.1.1

Bump @actions/http-client from 2.1.0 to 2.1.1
  • Loading branch information
pieterclaerhout authored Aug 7, 2023
2 parents d2ca199 + b9ae860 commit 6cdf778
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
21 changes: 20 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,19 @@ class HttpClientResponse {
}));
});
}
readBodyBuffer() {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
const chunks = [];
this.message.on('data', (chunk) => {
chunks.push(chunk);
});
this.message.on('end', () => {
resolve(Buffer.concat(chunks));
});
}));
});
}
}
exports.HttpClientResponse = HttpClientResponse;
function isHttps(requestUrl) {
Expand Down Expand Up @@ -2406,7 +2419,13 @@ function getProxyUrl(reqUrl) {
}
})();
if (proxyVar) {
return new URL(proxyVar);
try {
return new URL(proxyVar);
}
catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new URL(`http://${proxyVar}`);
}
}
else {
return undefined;
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@actions/http-client": "^2.1.0",
"@actions/http-client": "^2.1.1",
"nock": "^13.3.2"
},
"devDependencies": {
Expand Down

0 comments on commit 6cdf778

Please sign in to comment.