summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_dav_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-06 09:32:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-06 09:32:21 +0000
commita2951910d3b63f005777fc74051eddab6437de93 (patch)
tree88f3fe0b81545c5132621cc4ae4c2028753f2747 /src/http/modules/ngx_http_dav_module.c
parent703f15d8a25571c1095c0e35143c4e1679c62e6f (diff)
downloadnginx-a2951910d3b63f005777fc74051eddab6437de93.tar.gz
nginx-a2951910d3b63f005777fc74051eddab6437de93.tar.bz2
omit '\0' from "Location" header on MKCOL request
Diffstat (limited to 'src/http/modules/ngx_http_dav_module.c')
-rw-r--r--src/http/modules/ngx_http_dav_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index 1502fbf25..2948eec06 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -490,6 +490,7 @@ ngx_http_dav_mkcol_handler(ngx_http_request_t *r, ngx_http_dav_loc_conf_t *dlcf)
p = ngx_http_map_uri_to_path(r, &path, &root, 0);
*(p - 1) = '\0';
+ r->uri.len--;
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"http mkcol path: \"%s\"", path.data);