Skip to content

Commit c891000

Browse files
chore(client): minor internal fixes
1 parent f302f19 commit c891000

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,17 +579,17 @@ export class Stainless {
579579
}
580580

581581
buildRequest(
582-
options: FinalRequestOptions,
582+
inputOptions: FinalRequestOptions,
583583
{ retryCount = 0 }: { retryCount?: number } = {},
584584
): { req: FinalizedRequestInit; url: string; timeout: number } {
585-
options = { ...options };
585+
const options = { ...inputOptions };
586586
const { method, path, query } = options;
587587

588588
const url = this.buildURL(path!, query as Record<string, unknown>);
589589
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
590590
options.timeout = options.timeout ?? this.timeout;
591591
const { bodyHeaders, body } = this.buildBody({ options });
592-
const reqHeaders = this.buildHeaders({ options, method, bodyHeaders, retryCount });
592+
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
593593

594594
const req: FinalizedRequestInit = {
595595
method,

0 commit comments

Comments
 (0)