# HG changeset patch # User Igor Sysoev # Date 1276157836 0 # Node ID f9a96545fee7de575df457f6ded9a4cc31e3bd82 # Parent 395ae91f7a5adfe1d0728bb8ed0a6d7f40cd10e3 allow Destination URL without host diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c --- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -535,6 +535,13 @@ ngx_http_dav_copy_move_handler(ngx_http_ return NGX_HTTP_BAD_REQUEST; } + p = dest->value.data; + /* there is always '\0' even after empty header value */ + if (p[0] == '/') { + last = p + dest->value.len; + goto destination_done; + } + len = r->headers_in.server.len; if (len == 0) {