Skip to content

Commit 222a096

Browse files
fix(client): send X-Stainless-Timeout in seconds (#733)
1 parent 09739db commit 222a096

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
@@ -405,7 +405,7 @@ export abstract class APIClient {
405405
getHeader(headers, 'x-stainless-timeout') === undefined &&
406406
options.timeout
407407
) {
408-
reqHeaders['x-stainless-timeout'] = String(options.timeout);
408+
reqHeaders['x-stainless-timeout'] = String(Math.trunc(options.timeout / 1000));
409409
}
410410

411411
this.validateHeaders(reqHeaders, headers);

0 commit comments

Comments
 (0)