send response in webdav_put webdav

Mon, 02 May 2022 20:25:40 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 02 May 2022 20:25:40 +0200
branch
webdav
changeset 328
1c08aa0c060e
parent 327
24e740ed90b3
child 329
d2b2124801f4

send response in webdav_put

src/server/webdav/webdav.c file | annotate | diff | comparison | revisions
--- a/src/server/webdav/webdav.c	Mon May 02 20:22:16 2022 +0200
+++ b/src/server/webdav/webdav.c	Mon May 02 20:25:40 2022 +0200
@@ -659,10 +659,10 @@
     
     // send response
     if(ret == REQ_PROCEED) {
-        protocol_status(op->sn, op->rq, 204, NULL);
-        protocol_start_response(op->sn, op->rq);
+        protocol_status(sn, rq, 204, NULL);
+        protocol_start_response(sn, rq);
     } else {
-        protocol_status(op->sn, op->rq, 204, NULL);
+        protocol_status(sn, rq, 204, NULL);
     }
     
     return ret;
@@ -724,6 +724,7 @@
     
     int status = create_file ? PROTOCOL_CREATED : PROTOCOL_NO_CONTENT;
     protocol_status(sn, rq, status, NULL);
+    protocol_start_response(sn, rq);
     
     return REQ_PROCEED;
 }

mercurial