about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--http_dav.c2
-rw-r--r--http_put.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/http_dav.c b/http_dav.c
index 4b6df9b..43b6c7a 100644
--- a/http_dav.c
+++ b/http_dav.c
@@ -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;
         }
 
diff --git a/http_put.c b/http_put.c
index fc36ba7..11d6342 100644
--- a/http_put.c
+++ b/http_put.c
@@ -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);