diff options
-rw-r--r-- | http_dav.c | 2 | ||||
-rw-r--r-- | http_put.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -29,6 +29,8 @@ void mog_http_delete(struct mog_fd *mfd, char *buf) rc = mog_unlink(http->svc, path); if (rc == 0) { mog_http_resp(mfd, "204 No Content", true); + mog_notify(MOG_NOTIFY_DEVICE_REFRESH); + return; } @@ -153,6 +153,7 @@ static void put_commit_resp(struct mog_fd *mfd) if (set_perms_commit(http)) { file_close_null(mfd); mog_http_resp(mfd, "201 Created", true); + mog_notify(MOG_NOTIFY_DEVICE_REFRESH); } else { file_close_null(mfd); mog_http_resp(mfd, "500 Internal Server Error", false); |