✴️ Fix error triggered on 204 error upload

This commit is contained in:
Sebastien Clement 2020-01-10 18:18:26 +01:00
parent 961b43188e
commit cd7ca7344d

View File

@ -180,7 +180,7 @@ class WebdavTools {
reject(status.message);
}).on('response', (res) => {
if (res.statusCode != 201) {
if (res.statusCode != 201 && res.statusCode != 204) {
status.status = "error";
status.error_code = 4;
status.message = "Fail to upload snapshot to nextcloud (Status code: " + res.statusCode + ") !"