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 330100c commit ae39908Copy full SHA for ae39908
src/client.ts
@@ -581,7 +581,7 @@ export class Lightswitch {
581
Accept: 'application/json',
582
'User-Agent': this.getUserAgent(),
583
'X-Stainless-Retry-Count': String(retryCount),
584
- ...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
585
...getPlatformHeaders(),
586
},
587
this._options.defaultHeaders,
0 commit comments