# HG changeset patch # User Olaf Wintermann # Date 1651515736 -7200 # Node ID 24e740ed90b3b181a442c1fd39868daf6c17d183 # Parent 814b94f820db1680a16f975c5baa613a3c3a4e9e move http response code from webdav_vfs_op_do to webdav_delete diff -r 814b94f820db -r 24e740ed90b3 src/server/webdav/operation.c --- 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; } diff -r 814b94f820db -r 24e740ed90b3 src/server/webdav/webdav.c --- 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; }