Преглед изворни кода

patch: disable webdav redirect

fred-bf пре 1 година
родитељ
комит
e8d76a513d
1 измењених фајлова са 1 додато и 0 уклоњено
  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") ?? "",
     },
     body: shouldNotHaveBody ? null : req.body,
+    redirect: 'manual',
     method,
     // @ts-ignore
     duplex: "half",