Compare commits

..

3 Commits

Author SHA1 Message Date
Book Pauk
2bfc557071 Merge branch 'release/0.11.0-1' 2021-11-22 21:12:35 +07:00
Book Pauk
e1216109bc Поправлен баг с maxBodyLength клиента WebDav 2021-11-22 21:12:02 +07:00
Book Pauk
990b8f390c Merge tag '0.11.0' into develop
0.11.0
2021-11-18 18:43:53 +07:00

View File

@@ -7,6 +7,7 @@ class RemoteWebDavStorage {
constructor(config) { constructor(config) {
this.config = Object.assign({}, config); this.config = Object.assign({}, config);
this.config.maxContentLength = this.config.maxContentLength || 10*1024*1024; this.config.maxContentLength = this.config.maxContentLength || 10*1024*1024;
this.config.maxBodyLength = this.config.maxContentLength;
this.wdc = createClient(config.url, this.config); this.wdc = createClient(config.url, this.config);
} }
@@ -30,7 +31,7 @@ class RemoteWebDavStorage {
} }
async writeFile(filename, data) { async writeFile(filename, data) {
return await this.wdc.putFileContents(filename, data, { maxContentLength: this.config.maxContentLength }) return await this.wdc.putFileContents(filename, data)
} }
async unlink(filename) { async unlink(filename) {
@@ -38,7 +39,7 @@ class RemoteWebDavStorage {
} }
async readFile(filename) { async readFile(filename) {
return await this.wdc.getFileContents(filename, { maxContentLength: this.config.maxContentLength }) return await this.wdc.getFileContents(filename)
} }
async mkdir(dirname) { async mkdir(dirname) {