File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -537,19 +537,13 @@ export abstract class APIClient {
537
537
const timeout = setTimeout ( ( ) => controller . abort ( ) , ms ) ;
538
538
539
539
return (
540
- this . getRequestClient ( )
541
- // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
542
- . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } )
543
- . finally ( ( ) => {
544
- clearTimeout ( timeout ) ;
545
- } )
540
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
541
+ this . fetch . call ( undefined , url , { signal : controller . signal as any , ...options } ) . finally ( ( ) => {
542
+ clearTimeout ( timeout ) ;
543
+ } )
546
544
) ;
547
545
}
548
546
549
- protected getRequestClient ( ) : RequestClient {
550
- return { fetch : this . fetch } ;
551
- }
552
-
553
547
private shouldRetry ( response : Response ) : boolean {
554
548
// Note this is not a standard header.
555
549
const shouldRetryHeader = response . headers . get ( 'x-should-retry' ) ;
You can’t perform that action at this time.
0 commit comments