Mercurial > hg > nginx
comparison src/http/modules/ngx_http_dav_module.c @ 3612:f9a96545fee7
allow Destination URL without host
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 10 Jun 2010 08:17:16 +0000 |
parents | 84905c7b2aa7 |
children | 59b99f217c6d |
comparison
equal
deleted
inserted
replaced
3611:395ae91f7a5a | 3612:f9a96545fee7 |
---|---|
533 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 533 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
534 "client sent no \"Destination\" header"); | 534 "client sent no \"Destination\" header"); |
535 return NGX_HTTP_BAD_REQUEST; | 535 return NGX_HTTP_BAD_REQUEST; |
536 } | 536 } |
537 | 537 |
538 p = dest->value.data; | |
539 /* there is always '\0' even after empty header value */ | |
540 if (p[0] == '/') { | |
541 last = p + dest->value.len; | |
542 goto destination_done; | |
543 } | |
544 | |
538 len = r->headers_in.server.len; | 545 len = r->headers_in.server.len; |
539 | 546 |
540 if (len == 0) { | 547 if (len == 0) { |
541 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 548 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
542 "client sent no \"Host\" header"); | 549 "client sent no \"Host\" header"); |