webdav_propfind logs less errors for http 4xx errors

Wed, 22 Mar 2023 18:18:51 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 22 Mar 2023 18:18:51 +0100
changeset 487
f2b0e48aa483
parent 486
133118c79f4e
child 488
2ad9bcc2ae51

webdav_propfind logs less errors for http 4xx errors

src/server/webdav/webdav.c file | annotate | diff | comparison | revisions
--- a/src/server/webdav/webdav.c	Wed Mar 22 18:18:22 2023 +0100
+++ b/src/server/webdav/webdav.c	Wed Mar 22 18:18:51 2023 +0100
@@ -316,7 +316,7 @@
         if(multistatus_send(ms, sn->csd)) {
             ret = REQ_ABORTED;
         }
-    } else {
+    } else if(rq->status_num < 400 || rq->status_num >= 500) {
         log_ereport(LOG_FAILURE, "webdav-propfind: operation failed");
     }
     

mercurial