Mon, 02 May 2022 20:22:16 +0200
move http response code from webdav_vfs_op_do to webdav_delete
src/server/webdav/operation.c | file | annotate | diff | comparison | revisions | |
src/server/webdav/webdav.c | file | annotate | diff | comparison | revisions |
--- a/src/server/webdav/operation.c Mon May 02 20:20:37 2022 +0200 +++ b/src/server/webdav/operation.c Mon May 02 20:22:16 2022 +0200 @@ -736,14 +736,6 @@ i++; } - // send response - if(ret == REQ_PROCEED) { - protocol_status(op->sn, op->rq, 204, NULL); - protocol_start_response(op->sn, op->rq); - } else { - protocol_status(op->sn, op->rq, 204, NULL); - } - return ret; }
--- a/src/server/webdav/webdav.c Mon May 02 20:20:37 2022 +0200 +++ b/src/server/webdav/webdav.c Mon May 02 20:22:16 2022 +0200 @@ -657,6 +657,14 @@ ret = webdav_vfs_op_do(op, WEBDAV_VFS_DELETE); } + // send response + if(ret == REQ_PROCEED) { + protocol_status(op->sn, op->rq, 204, NULL); + protocol_start_response(op->sn, op->rq); + } else { + protocol_status(op->sn, op->rq, 204, NULL); + } + return ret; }