diff options
author | Graham Leggett <minfrin@apache.org> | 2020-06-29 18:29:58 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2020-06-29 18:29:58 +0200 |
commit | 5620d7c2ebb454775a24c0cdff56e98e097ad5c4 (patch) | |
tree | 948c6f8c9180f4ba4201ef612cd4638a8d04c7b7 /modules/dav | |
parent | mod_dav: Add method_precondition hook. WebDAV extensions define (diff) | |
download | apache2-5620d7c2ebb454775a24c0cdff56e98e097ad5c4.tar.xz apache2-5620d7c2ebb454775a24c0cdff56e98e097ad5c4.zip |
Begone foul tabs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879340 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav')
-rw-r--r-- | modules/dav/main/mod_dav.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 3d8393ff31..b50636262b 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -875,12 +875,12 @@ static int dav_method_get(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } - if (!resource->exists) { + if (!resource->exists) { /* Apache will supply a default error for this. */ return HTTP_NOT_FOUND; } @@ -928,7 +928,7 @@ static int dav_method_post(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -968,7 +968,7 @@ static int dav_method_put(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -1259,7 +1259,7 @@ static int dav_method_delete(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -1712,7 +1712,7 @@ static int dav_method_options(request_rec *r) /* note: doc == NULL if no request body */ /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -2138,7 +2138,7 @@ static int dav_method_propfind(request_rec *r) /* note: doc == NULL if no request body */ /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -2422,7 +2422,7 @@ static int dav_method_proppatch(request_rec *r) /* note: doc == NULL if no request body */ /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -2639,7 +2639,7 @@ static int dav_method_mkcol(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -2774,7 +2774,7 @@ static int dav_method_copymove(request_rec *r, int is_move) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -2846,7 +2846,7 @@ static int dav_method_copymove(request_rec *r, int is_move) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, resnew, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, resnew, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3214,7 +3214,7 @@ static int dav_method_lock(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3419,7 +3419,7 @@ static int dav_method_unlock(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3490,7 +3490,7 @@ static int dav_method_vsn_control(request_rec *r) /* note: doc == NULL if no request body */ /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3743,7 +3743,7 @@ static int dav_method_checkout(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3825,7 +3825,7 @@ static int dav_method_uncheckout(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -3908,7 +3908,7 @@ static int dav_method_checkin(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4035,7 +4035,7 @@ static int dav_method_update(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4197,7 +4197,7 @@ static int dav_method_label(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4373,7 +4373,7 @@ static int dav_method_report(request_rec *r) } /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4449,7 +4449,7 @@ static int dav_method_make_workspace(request_rec *r) } /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4514,7 +4514,7 @@ static int dav_method_make_activity(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4645,7 +4645,7 @@ static int dav_method_merge(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, source_resource, NULL, doc, &err) != DECLINED + if (dav_run_method_precondition(r, source_resource, NULL, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4669,7 +4669,7 @@ static int dav_method_merge(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, source_resource, resource, doc, &err) != DECLINED + if (dav_run_method_precondition(r, source_resource, resource, doc, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4742,7 +4742,7 @@ static int dav_method_bind(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, NULL, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } @@ -4798,7 +4798,7 @@ static int dav_method_bind(request_rec *r) return dav_handle_err(r, err, NULL); /* check for any method preconditions */ - if (dav_run_method_precondition(r, resource, binding, NULL, &err) != DECLINED + if (dav_run_method_precondition(r, resource, binding, NULL, &err) != DECLINED && err) { return dav_handle_err(r, err, NULL); } |