Merge develop

This commit is contained in:
Pieter Vander Vennet 2023-10-30 16:32:43 +01:00
commit 29ff09024f
287 changed files with 14955 additions and 4036 deletions

View file

@ -980,7 +980,9 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
*/
public static downloadAdvanced(
url: string,
headers?: any
headers?: any,
method: "POST" | "GET" | "PUT" | "UPDATE" | "DELETE" | "OPTIONS" = "GET",
content?: string
): Promise<
| { content: string }
| { redirect: string }
@ -1007,14 +1009,13 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
})
}
}
xhr.open("GET", url)
xhr.open(method, url)
if (headers !== undefined) {
for (const key in headers) {
xhr.setRequestHeader(key, headers[key])
}
}
xhr.send()
xhr.send(content)
xhr.onerror = reject
})
}