From bbb909cda47ff43c9e43c47b8a31b5ee1f6c9166 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Mon, 1 Jan 2024 01:32:22 +0800 Subject: [PATCH] add link for null body --- src/remoteForWebdav.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/remoteForWebdav.ts b/src/remoteForWebdav.ts index b8cd0d1..d52e262 100644 --- a/src/remoteForWebdav.ts +++ b/src/remoteForWebdav.ts @@ -100,6 +100,7 @@ if (VALID_REQURL) { let r2: Response = undefined; if ([101, 103, 204, 205, 304].includes(r.status)) { // A null body status is a status that is 101, 103, 204, 205, or 304. + // https://fetch.spec.whatwg.org/#statuses // fix this: Failed to construct 'Response': Response with null body status cannot have body r2 = new Response(null, { status: r.status,