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') {