Skip to content

Commit cb150ed

Browse files
fix(client): send X-Stainless-Timeout in seconds (#104)
1 parent 4c2865b commit cb150ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class Stainless {
628628
Accept: 'application/json',
629629
'User-Agent': this.getUserAgent(),
630630
'X-Stainless-Retry-Count': String(retryCount),
631-
...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
631+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
632632
...getPlatformHeaders(),
633633
},
634634
this.authHeaders(options),

0 commit comments

Comments
 (0)