Commit 9f1c7083 authored by Remco Mokveld's avatar Remco Mokveld
Browse files

Specify requestOptions in constructor of HttpClient

parent 34dcae18
Loading
Loading
Loading
Loading
+2 −5
Changes for sources/src/develocity/short-lived-token.ts: 2 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -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 = {
        this.httpc = new httpm.HttpClient('gradle/actions/setup-gradle', undefined, {
            ignoreSslError: develocityAllowUntrustedServer
            }
        }
        })
    }

    async fetchToken(serverUrl: string, accessKey: HostnameAccessKey, expiry: string): Promise<HostnameAccessKey> {