We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
X-Stainless-Timeout
1 parent 5cd2c92 commit 8b20372Copy full SHA for 8b20372
src/client.ts
@@ -835,7 +835,7 @@ export class Gitpod {
835
Accept: 'application/json',
836
'User-Agent': this.getUserAgent(),
837
'X-Stainless-Retry-Count': String(retryCount),
838
- ...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
839
...getPlatformHeaders(),
840
},
841
this.authHeaders(options),
0 commit comments