File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -881,17 +881,17 @@ export class Hanzo {
881
881
}
882
882
883
883
buildRequest (
884
- options : FinalRequestOptions ,
884
+ inputOptions : FinalRequestOptions ,
885
885
{ retryCount = 0 } : { retryCount ?: number } = { } ,
886
886
) : { req : FinalizedRequestInit ; url : string ; timeout : number } {
887
- options = { ...options } ;
887
+ const options = { ...inputOptions } ;
888
888
const { method, path, query } = options ;
889
889
890
890
const url = this . buildURL ( path ! , query as Record < string , unknown > ) ;
891
891
if ( 'timeout' in options ) validatePositiveInteger ( 'timeout' , options . timeout ) ;
892
892
options . timeout = options . timeout ?? this . timeout ;
893
893
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 } ) ;
895
895
896
896
const req : FinalizedRequestInit = {
897
897
method,
You can’t perform that action at this time.
0 commit comments