comparison src/http/ngx_http_upstream.c @ 378:fc497c1dfb7c NGINX_0_6_33

nginx 0.6.33 *) Feature: now nginx returns the 405 status code for POST method requesting a static file only if the file exists. *) Workaround: compatibility with glibc 2.3. Thanks to Eric Benson and Maxim Dounin. *) Bugfix: the resolver did not understand big DNS responses. Thanks to Zyb. *) Bugfix: in HTTPS mode requests might fail with the "bad write retry" error. *) Bugfix: the ngx_http_charset_module did not understand quoted charset name received from backend. *) Bugfix: if the "max_fails=0" parameter was used in upstream with several servers, then a worker process exited on a SIGFPE signal. Thanks to Maxim Dounin. *) Bugfix: the $r->header_in() method did not return value of the "Host", "User-Agent", and "Connection" request header lines; the bug had appeared in 0.6.32. *) Bugfix: a full response was returned for request method HEAD while redirection via an "error_page" directive. *) Bugfix: if a directory has search only rights and the first index file was absent, then nginx returned the 500 status code. *) Bugfix: of recursive error_page for 500 status code.
author Igor Sysoev <http://sysoev.ru>
date Thu, 20 Nov 2008 00:00:00 +0300
parents 6639b93e81b2
children 3ce4580ae286
comparison
equal deleted inserted replaced
377:15c4ba3bc2fa 378:fc497c1dfb7c
2623 2623
2624 p += 8; 2624 p += 8;
2625 2625
2626 r->headers_out.content_type_len = last - h->value.data; 2626 r->headers_out.content_type_len = last - h->value.data;
2627 2627
2628 r->headers_out.charset.len = h->value.data + h->value.len - p; 2628 if (*p == '"') {
2629 p++;
2630 }
2631
2632 last = h->value.data + h->value.len;
2633
2634 if (*(last - 1) == '"') {
2635 last--;
2636 }
2637
2638 r->headers_out.charset.len = last - p;
2629 r->headers_out.charset.data = p; 2639 r->headers_out.charset.data = p;
2630 2640
2631 return NGX_OK; 2641 return NGX_OK;
2632 } 2642 }
2633 2643