Skip to content

Commit 8b20372

Browse files
fix(client): send X-Stainless-Timeout in seconds (#63)
1 parent 5cd2c92 commit 8b20372

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
@@ -835,7 +835,7 @@ export class Gitpod {
835835
Accept: 'application/json',
836836
'User-Agent': this.getUserAgent(),
837837
'X-Stainless-Retry-Count': String(retryCount),
838-
...(options.timeout ? { 'X-Stainless-Timeout': String(options.timeout) } : {}),
838+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
839839
...getPlatformHeaders(),
840840
},
841841
this.authHeaders(options),

0 commit comments

Comments
 (0)