]> git.kaiwu.me - nginx.git/commitdiff
omit '\0' from "Location" header on MKCOL request
authorIgor Sysoev <igor@sysoev.ru>
Tue, 6 Oct 2009 09:32:21 +0000 (09:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 6 Oct 2009 09:32:21 +0000 (09:32 +0000)
src/http/modules/ngx_http_dav_module.c

index 1502fbf250f387f52d9be942a89c0d3d3aacd9a3..2948eec0668fb377dcc7cf0d4df2ba87181349c4 100644 (file)
@@ -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);