fix PUT could potentially return a wrong status code

Sat, 25 Mar 2023 17:18:51 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 25 Mar 2023 17:18:51 +0100
changeset 489
921f83a8943f
parent 488
2ad9bcc2ae51
child 490
d218607f5a7e

fix PUT could potentially return a wrong status code

src/server/webdav/webdav.c file | annotate | diff | comparison | revisions
--- a/src/server/webdav/webdav.c	Fri Mar 24 21:02:25 2023 +0100
+++ b/src/server/webdav/webdav.c	Sat Mar 25 17:18:51 2023 +0100
@@ -773,6 +773,7 @@
         protocol_status(sn, rq, PROTOCOL_METHOD_NOT_ALLOWED, NULL);
         return REQ_ABORTED;
     }
+    vfs->error_response_set = FALSE; // reset error
     
     SYS_FILE fd = vfs_open(vfs, path, O_WRONLY | O_TRUNC | create_file);
     if(!fd) {

mercurial