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 @@ -579,17 +579,17 @@ export class Stainless {
579579 }
580580
581581 buildRequest (
582- options : FinalRequestOptions ,
582+ inputOptions : FinalRequestOptions ,
583583 { retryCount = 0 } : { retryCount ?: number } = { } ,
584584 ) : { req : FinalizedRequestInit ; url : string ; timeout : number } {
585- options = { ...options } ;
585+ const options = { ...inputOptions } ;
586586 const { method, path, query } = options ;
587587
588588 const url = this . buildURL ( path ! , query as Record < string , unknown > ) ;
589589 if ( 'timeout' in options ) validatePositiveInteger ( 'timeout' , options . timeout ) ;
590590 options . timeout = options . timeout ?? this . timeout ;
591591 const { bodyHeaders, body } = this . buildBody ( { options } ) ;
592- const reqHeaders = this . buildHeaders ( { options, method, bodyHeaders, retryCount } ) ;
592+ const reqHeaders = this . buildHeaders ( { options : inputOptions , method, bodyHeaders, retryCount } ) ;
593593
594594 const req : FinalizedRequestInit = {
595595 method,
You can’t perform that action at this time.
0 commit comments