Sat, 25 Mar 2023 17:18:51 +0100
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) {