mirror of
https://github.com/gradle/actions.git
synced 2025-04-19 01:09:20 +08:00
Specify requestOptions in constructor of HttpClient
This commit is contained in:
parent
34dcae18f8
commit
9f1c708302
@ -80,12 +80,9 @@ class ShortLivedTokenClient {
|
||||
retryInterval = 1000
|
||||
|
||||
constructor(develocityAllowUntrustedServer: boolean | undefined) {
|
||||
this.httpc = new httpm.HttpClient('gradle/actions/setup-gradle')
|
||||
if (develocityAllowUntrustedServer !== undefined) {
|
||||
this.httpc.requestOptions = {
|
||||
ignoreSslError: develocityAllowUntrustedServer
|
||||
}
|
||||
}
|
||||
this.httpc = new httpm.HttpClient('gradle/actions/setup-gradle', undefined, {
|
||||
ignoreSslError: develocityAllowUntrustedServer
|
||||
})
|
||||
}
|
||||
|
||||
async fetchToken(serverUrl: string, accessKey: HostnameAccessKey, expiry: string): Promise<HostnameAccessKey> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user