mirror of
https://github.com/actions/setup-node.git
synced 2025-12-14 00:16:35 +08:00
.
This commit is contained in:
2
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
2
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
@@ -20,7 +20,7 @@ export class RequestError extends Error {
|
||||
return statusCode;
|
||||
}
|
||||
});
|
||||
this.headers = options.headers;
|
||||
this.headers = options.headers || {};
|
||||
// redact request credentials without mutating original request options
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
if (options.request.headers.authorization) {
|
||||
|
||||
Reference in New Issue
Block a user