fix(core): update
This commit is contained in:
		| @@ -72,6 +72,7 @@ export class WebRequest { | ||||
|     optionsArg: { | ||||
|       method: 'GET' | 'POST' | 'PUT' | 'DELETE'; | ||||
|       body?: any; | ||||
|       headers?: HeadersInit; | ||||
|     } | ||||
|   ): Promise<Response> { | ||||
|     let allUrls: string[]; | ||||
| @@ -106,7 +107,7 @@ export class WebRequest { | ||||
|     }; | ||||
|  | ||||
|     // lets go recursive | ||||
|     const doRequest = async (urlToUse: string) => { | ||||
|     const doRequest = async (urlToUse: string): Promise<any> => { | ||||
|       if (!urlToUse) { | ||||
|         throw new Error('request failed permanently'); | ||||
|       } | ||||
| @@ -115,6 +116,7 @@ export class WebRequest { | ||||
|         method: optionsArg.method, | ||||
|         headers: { | ||||
|           'Content-Type': 'application/json', | ||||
|           ...(optionsArg.headers || {}) | ||||
|         }, | ||||
|         body: optionsArg.body, | ||||
|       }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user