From fb460e28504e82aeb2df713df37c9439e3ae086f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 31 Jul 2024 11:26:45 +0200 Subject: [PATCH] Fix download function --- src/Utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.ts b/src/Utils.ts index ddd9757d0..43661e9ed 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -957,7 +957,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be let result = undefined for (let i = 0; i < maxAttempts; i++) { - result = await Utils.downloadAdvanced(url, headers, method, content) + result = await Utils.downloadAdvancedTryOnce(url, headers, method, content) if(!result["error"] ){ return result } @@ -971,7 +971,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be /** * Download function which also indicates advanced options, such as redirects */ - public static downloadAdvancedTryOnce( + private static downloadAdvancedTryOnce( url: string, headers?: Record, method: "POST" | "GET" | "PUT" | "UPDATE" | "DELETE" | "OPTIONS" = "GET",