Explorar o código

Merge pull request #4381 from ChatGPTNextWeb/fred-bf-patch-3

patch: disable webdav redirect
fred-bf hai 1 ano
pai
achega
90af4e3b77
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/api/webdav/[...path]/route.ts

+ 1 - 0
app/api/webdav/[...path]/route.ts

@@ -101,6 +101,7 @@ async function handle(
       authorization: req.headers.get("authorization") ?? "",
       authorization: req.headers.get("authorization") ?? "",
     },
     },
     body: shouldNotHaveBody ? null : req.body,
     body: shouldNotHaveBody ? null : req.body,
+    redirect: 'manual',
     method,
     method,
     // @ts-ignore
     // @ts-ignore
     duplex: "half",
     duplex: "half",