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 @@ -296,10 +296,10 @@ export abstract class APIClient {
296
296
}
297
297
298
298
buildRequest < Req > (
299
- options : FinalRequestOptions < Req > ,
299
+ inputOptions : FinalRequestOptions < Req > ,
300
300
{ retryCount = 0 } : { retryCount ?: number } = { } ,
301
301
) : { req : RequestInit ; url : string ; timeout : number } {
302
- options = { ...options } ;
302
+ const options = { ...inputOptions } ;
303
303
const { method, path, query, headers : headers = { } } = options ;
304
304
305
305
const body =
@@ -327,8 +327,8 @@ export abstract class APIClient {
327
327
}
328
328
329
329
if ( this . idempotencyHeader && method !== 'get' ) {
330
- if ( ! options . idempotencyKey ) options . idempotencyKey = this . defaultIdempotencyKey ( ) ;
331
- headers [ this . idempotencyHeader ] = options . idempotencyKey ;
330
+ if ( ! inputOptions . idempotencyKey ) inputOptions . idempotencyKey = this . defaultIdempotencyKey ( ) ;
331
+ headers [ this . idempotencyHeader ] = inputOptions . idempotencyKey ;
332
332
}
333
333
334
334
const reqHeaders = this . buildHeaders ( { options, headers, contentLength, retryCount } ) ;
You can’t perform that action at this time.
0 commit comments