Set propfind depth to 1 (nginx doesn't support infinity)

This commit is contained in:
Spencer Killen 2026-05-20 16:36:45 -06:00
parent af90d3b26f
commit 163546d5b3
Signed by: sjkillen
GPG key ID: 1DAA9D8D7C6ADD05

View file

@ -20,7 +20,7 @@ async function send_request() {
} }
// NGINX is nonstandard in not having this as the default // NGINX is nonstandard in not having this as the default
if (response_options.method == "PROPFIND") { if (response_options.method == "PROPFIND") {
response_options.headers["Depth"] = "infinity"; response_options.headers["Depth"] = "1";
} }
const response = await fetch(new Request("https://libreinternet.club/" + editorurl.value, response_options)); const response = await fetch(new Request("https://libreinternet.club/" + editorurl.value, response_options));
editorresponse.value = await response.text(); editorresponse.value = await response.text();