mirror of
https://github.com/nginx/nginx.git
synced 2025-01-06 07:27:47 +08:00
tree.init_handler is never called
This commit is contained in:
parent
b28f5cc3cb
commit
465a5ff18b
@ -37,7 +37,6 @@ static ngx_int_t ngx_http_dav_handler(ngx_http_request_t *r);
|
|||||||
static void ngx_http_dav_put_handler(ngx_http_request_t *r);
|
static void ngx_http_dav_put_handler(ngx_http_request_t *r);
|
||||||
|
|
||||||
static ngx_int_t ngx_http_dav_delete_handler(ngx_http_request_t *r);
|
static ngx_int_t ngx_http_dav_delete_handler(ngx_http_request_t *r);
|
||||||
static ngx_int_t ngx_http_dav_no_init(void *ctx, void *prev);
|
|
||||||
static ngx_int_t ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
static ngx_int_t ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
||||||
static ngx_int_t ngx_http_dav_delete_dir(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
static ngx_int_t ngx_http_dav_delete_dir(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
||||||
static ngx_int_t ngx_http_dav_delete_file(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
static ngx_int_t ngx_http_dav_delete_file(ngx_tree_ctx_t *ctx, ngx_str_t *path);
|
||||||
@ -408,13 +407,6 @@ ngx_http_dav_delete_handler(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static ngx_int_t
|
|
||||||
ngx_http_dav_no_init(void *ctx, void *prev)
|
|
||||||
{
|
|
||||||
return NGX_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static ngx_int_t
|
static ngx_int_t
|
||||||
ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path)
|
ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path)
|
||||||
{
|
{
|
||||||
@ -710,7 +702,7 @@ overwrite_done:
|
|||||||
|
|
||||||
copy.len = path.len;
|
copy.len = path.len;
|
||||||
|
|
||||||
tree.init_handler = ngx_http_dav_no_init;
|
tree.init_handler = NULL;
|
||||||
tree.file_handler = ngx_http_dav_copy_file;
|
tree.file_handler = ngx_http_dav_copy_file;
|
||||||
tree.pre_tree_handler = ngx_http_dav_copy_dir;
|
tree.pre_tree_handler = ngx_http_dav_copy_dir;
|
||||||
tree.post_tree_handler = ngx_http_dav_copy_dir_time;
|
tree.post_tree_handler = ngx_http_dav_copy_dir_time;
|
||||||
@ -960,7 +952,7 @@ ngx_http_dav_delete_path(ngx_http_request_t *r, ngx_str_t *path, ngx_uint_t dir)
|
|||||||
|
|
||||||
if (dir) {
|
if (dir) {
|
||||||
|
|
||||||
tree.init_handler = ngx_http_dav_no_init;
|
tree.init_handler = NULL;
|
||||||
tree.file_handler = ngx_http_dav_delete_file;
|
tree.file_handler = ngx_http_dav_delete_file;
|
||||||
tree.pre_tree_handler = ngx_http_dav_noop;
|
tree.pre_tree_handler = ngx_http_dav_noop;
|
||||||
tree.post_tree_handler = ngx_http_dav_delete_dir;
|
tree.post_tree_handler = ngx_http_dav_delete_dir;
|
||||||
|
Loading…
Reference in New Issue
Block a user