From 63593e2146f20e8db2d7f0465144297829d32683 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:18:07 +0200 Subject: [PATCH] fix: use fetch param type instead of RequestInit --- app/api/webdav/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/webdav/route.ts b/app/api/webdav/route.ts index 91cc8f6a..85cbbac7 100644 --- a/app/api/webdav/route.ts +++ b/app/api/webdav/route.ts @@ -96,7 +96,7 @@ export async function POST(request: NextRequest) { redirect: 'follow', // `duplex: 'half'` is required by undici when sending a streaming request body. ...(method === 'PUT' ? { duplex: 'half' } : {}), - } as RequestInit & { duplex?: 'half' }); + } as Parameters[1] & { duplex?: 'half' }); // For file downloads (GET), stream the response back if (method === 'GET') {