allow Destination URL without host

This commit is contained in:
Igor Sysoev 2010-06-10 08:17:16 +00:00
parent f0bf9956dc
commit 34cd1cc656

View File

@ -535,6 +535,13 @@ ngx_http_dav_copy_move_handler(ngx_http_request_t *r)
return NGX_HTTP_BAD_REQUEST; 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; len = r->headers_in.server.len;
if (len == 0) { if (len == 0) {