Skip to content

Commit ae39908

Browse files
fix(client): send X-Stainless-Timeout in seconds (#41)
1 parent 330100c commit ae39908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ export class Lightswitch {
581581
Accept: 'application/json',
582582
'User-Agent': this.getUserAgent(),
583583
'X-Stainless-Retry-Count': String(retryCount),
584-
...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
584+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
585585
...getPlatformHeaders(),
586586
},
587587
this._options.defaultHeaders,

0 commit comments

Comments
 (0)