summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-20 13:37:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-08-20 13:37:26 +0000
commit9db33c92341ea89b6c4922d63242db21313034f8 (patch)
tree7c26d9c30b11b3e1a09a77cf2967f2e09d17174a /src/http
parent0f00b0a801008c2d2185285049b79a0a2fc01b49 (diff)
downloadnginx-9db33c92341ea89b6c4922d63242db21313034f8.tar.gz
nginx-9db33c92341ea89b6c4922d63242db21313034f8.tar.bz2
fix copy destination name length, introduced in r3025
Diffstat (limited to 'src/http')
-rw-r--r--src/http/modules/ngx_http_dav_module.c2
-rw-r--r--src/http/ngx_http_upstream.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index 753387acc..38e928c3d 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -214,6 +214,8 @@ ngx_http_dav_put_handler(ngx_http_request_t *r)
ngx_http_map_uri_to_path(r, &path, &root, 0);
+ path.len--;
+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"http put filename: \"%s\"", path.data);
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index a418eaa2f..b02caa67d 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2661,6 +2661,8 @@ ngx_http_upstream_store(ngx_http_request_t *r, ngx_http_upstream_t *u)
}
}
+ path.len--;
+
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"upstream stores \"%s\" to \"%s\"",
tf->file.name.data, path.data);