fix: WebDAV 备份失败 maxBodyLength 限制 #243

This commit is contained in:
kangfenmao 2024-10-25 13:26:46 +08:00
parent cfb3eb7d90
commit 7c99621558

View File

@ -12,7 +12,9 @@ export default class WebDav {
this.instance = createClient(params.webdavHost, { this.instance = createClient(params.webdavHost, {
username: params.webdavUser, username: params.webdavUser,
password: params.webdavPass password: params.webdavPass,
maxBodyLength: Infinity,
maxContentLength: Infinity
}) })
this.putFileContents = this.putFileContents.bind(this) this.putFileContents = this.putFileContents.bind(this)