Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_dav_module.c @ 578:bc110f60c0de NGINX_0_8_41
nginx 0.8.41
*) Security: nginx/Windows worker might be terminated abnormally if a
requested file name has invalid UTF-8 encoding.
*) Change: now nginx allows to use spaces in a request line.
*) Bugfix: the "proxy_redirect" directive changed incorrectly a backend
"Refresh" response header line.
Thanks to Andrey Andreew and Max Sogin.
*) Bugfix: nginx did not support path without host name in
"Destination" request header line.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Jun 2010 00:00:00 +0400 |
parents | ff463db0be31 |
children | eb208e0cf44d |
comparison
equal
deleted
inserted
replaced
577:dd4c3325a56f | 578:bc110f60c0de |
---|---|
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"); |