File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -331,10 +331,10 @@ export abstract class APIClient {
331
331
}
332
332
333
333
buildRequest < Req > (
334
- options : FinalRequestOptions < Req > ,
334
+ inputOptions : FinalRequestOptions < Req > ,
335
335
{ retryCount = 0 } : { retryCount ?: number } = { } ,
336
336
) : { req : RequestInit ; url : string ; timeout : number } {
337
- options = { ...options } ;
337
+ const options = { ...inputOptions } ;
338
338
const { method, path, query, headers : headers = { } } = options ;
339
339
340
340
const body =
@@ -362,8 +362,8 @@ export abstract class APIClient {
362
362
}
363
363
364
364
if ( this . idempotencyHeader && method !== 'get' ) {
365
- if ( ! options . idempotencyKey ) options . idempotencyKey = this . defaultIdempotencyKey ( ) ;
366
- headers [ this . idempotencyHeader ] = options . idempotencyKey ;
365
+ if ( ! inputOptions . idempotencyKey ) inputOptions . idempotencyKey = this . defaultIdempotencyKey ( ) ;
366
+ headers [ this . idempotencyHeader ] = inputOptions . idempotencyKey ;
367
367
}
368
368
369
369
const reqHeaders = this . buildHeaders ( { options, headers, contentLength, retryCount } ) ;
You can’t perform that action at this time.
0 commit comments