Skip to content

Commit 7325261

Browse files
chore(client): minor internal fixes
1 parent 7e9f58e commit 7325261

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
@@ -881,17 +881,17 @@ export class Hanzo {
881881
}
882882

883883
buildRequest(
884-
options: FinalRequestOptions,
884+
inputOptions: FinalRequestOptions,
885885
{ retryCount = 0 }: { retryCount?: number } = {},
886886
): { req: FinalizedRequestInit; url: string; timeout: number } {
887-
options = { ...options };
887+
const options = { ...inputOptions };
888888
const { method, path, query } = options;
889889

890890
const url = this.buildURL(path!, query as Record<string, unknown>);
891891
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
892892
options.timeout = options.timeout ?? this.timeout;
893893
const { bodyHeaders, body } = this.buildBody({ options });
894-
const reqHeaders = this.buildHeaders({ options, method, bodyHeaders, retryCount });
894+
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
895895

896896
const req: FinalizedRequestInit = {
897897
method,

0 commit comments

Comments
 (0)