mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
allow Destination URL without host
This commit is contained in:
parent
f0bf9956dc
commit
34cd1cc656
1 changed files with 7 additions and 0 deletions
|
|
@ -535,6 +535,13 @@ ngx_http_dav_copy_move_handler(ngx_http_request_t *r)
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue