mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-08-18 13:44:55 +02:00
✴️ Fix error triggered on 204 error upload
This commit is contained in:
parent
961b43188e
commit
cd7ca7344d
@ -180,7 +180,7 @@ class WebdavTools {
|
|||||||
reject(status.message);
|
reject(status.message);
|
||||||
|
|
||||||
}).on('response', (res) => {
|
}).on('response', (res) => {
|
||||||
if (res.statusCode != 201) {
|
if (res.statusCode != 201 && res.statusCode != 204) {
|
||||||
status.status = "error";
|
status.status = "error";
|
||||||
status.error_code = 4;
|
status.error_code = 4;
|
||||||
status.message = "Fail to upload snapshot to nextcloud (Status code: " + res.statusCode + ") !"
|
status.message = "Fail to upload snapshot to nextcloud (Status code: " + res.statusCode + ") !"
|
||||||
|
Loading…
Reference in New Issue
Block a user