Skip to content

Commit e3c6fb8

Browse files
chore(client): minor internal fixes
1 parent 702757c commit e3c6fb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -786,17 +786,17 @@ export class Gitpod {
786786
}
787787

788788
buildRequest(
789-
options: FinalRequestOptions,
789+
inputOptions: FinalRequestOptions,
790790
{ retryCount = 0 }: { retryCount?: number } = {},
791791
): { req: FinalizedRequestInit; url: string; timeout: number } {
792-
options = { ...options };
792+
const options = { ...inputOptions };
793793
const { method, path, query } = options;
794794

795795
const url = this.buildURL(path!, query as Record<string, unknown>);
796796
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
797797
options.timeout = options.timeout ?? this.timeout;
798798
const { bodyHeaders, body } = this.buildBody({ options });
799-
const reqHeaders = this.buildHeaders({ options, method, bodyHeaders, retryCount });
799+
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
800800

801801
const req: FinalizedRequestInit = {
802802
method,

0 commit comments

Comments
 (0)