1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Provide Content-Length header for WebDAV for better compatibility with more servers

This commit is contained in:
Laurent Cozic
2018-02-15 18:33:08 +00:00
parent 9347683fe3
commit 3a4bbd571e
8 changed files with 26 additions and 13 deletions

View File

@ -172,6 +172,10 @@ function shimInit() {
return shim.fetch(url, options);
}
shim.stringByteLength = function(string) {
return Buffer.byteLength(string, 'utf-8');
}
}
module.exports = { shimInit };