浏览代码

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",