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