From: Igor Sysoev Date: Tue, 6 Oct 2009 09:32:21 +0000 (+0000) Subject: omit '\0' from "Location" header on MKCOL request X-Git-Tag: release-0.8.18~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=a2951910d3b63f005777fc74051eddab6437de93;p=nginx.git omit '\0' from "Location" header on MKCOL request --- 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);