comparison src/http/ngx_http_upstream.c @ 416:a8e3f1441eec NGINX_0_7_17

nginx 0.7.17 *) Feature: now the "directio" directive works on Linux. *) Feature: the $pid variable. *) Bugfix: the "directio" optimization that had appeared in 0.7.15 did not work with open_file_cache. *) Bugfix: the "access_log" with variables did not work on Linux; the bug had appeared in 0.7.7. *) Bugfix: the ngx_http_charset_module did not understand quoted charset name received from backend.
author Igor Sysoev <http://sysoev.ru>
date Mon, 15 Sep 2008 00:00:00 +0400
parents 9d81578d04bb
children b246022ef454
comparison
equal deleted inserted replaced
415:f6561f721532 416:a8e3f1441eec
2630 2630
2631 p += 8; 2631 p += 8;
2632 2632
2633 r->headers_out.content_type_len = last - h->value.data; 2633 r->headers_out.content_type_len = last - h->value.data;
2634 2634
2635 r->headers_out.charset.len = h->value.data + h->value.len - p; 2635 if (*p == '"') {
2636 p++;
2637 }
2638
2639 last = h->value.data + h->value.len;
2640
2641 if (*(last - 1) == '"') {
2642 last--;
2643 }
2644
2645 r->headers_out.charset.len = last - p;
2636 r->headers_out.charset.data = p; 2646 r->headers_out.charset.data = p;
2637 2647
2638 return NGX_OK; 2648 return NGX_OK;
2639 } 2649 }
2640 2650