Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8aea1ee

Browse files
committedApr 3, 2025·
fix(client): send X-Stainless-Timeout in seconds (#161)
1 parent 1287216 commit 8aea1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export abstract class APIClient {
371371
getHeader(headers, 'x-stainless-timeout') === undefined &&
372372
options.timeout
373373
) {
374-
reqHeaders['x-stainless-timeout'] = String(options.timeout);
374+
reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000));
375375
}
376376

377377
this.validateHeaders(reqHeaders, headers);

0 commit comments

Comments
 (0)
Please sign in to comment.