Skip to content

Commit 7b4a5ab

Browse files
fix(client): send X-Stainless-Timeout in seconds (#44)
1 parent a08469c commit 7b4a5ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ export class Grid {
636636
Accept: 'application/json',
637637
'User-Agent': this.getUserAgent(),
638638
'X-Stainless-Retry-Count': String(retryCount),
639-
...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
639+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
640640
...getPlatformHeaders(),
641641
'X-Client-Name': 'api-sdk',
642642
},

0 commit comments

Comments
 (0)