Skip to content

Commit 01c1441

Browse files
fix(client): send X-Stainless-Timeout in seconds (#107)
1 parent 8f853dd commit 01c1441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)