Mercurial > hg > nginx-vendor-0-7
comparison src/http/ngx_http_special_response.c @ 508:68c0ae0a4959 NGINX_0_7_66
nginx 0.7.66
*) Security: now nginx/Windows ignores default file stream name.
Thanks to Jose Antonio Vazquez Gonzalez.
*) Change: now the charset filter runs before the SSI filter.
*) Change: now no message is written in an error log if a variable is
not found by $r->variable() method.
*) Change: now keepalive connections after POST requests are not
disabled for MSIE 7.0+.
Thanks to Adam Lounds.
*) Feature: the "proxy_no_cache" and "fastcgi_no_cache" directives.
*) Feature: now the "rewrite" directive does a redirect automatically
if the $scheme variable is used.
Thanks to Piotr Sikora.
*) Feature: the "chunked_transfer_encoding" directive.
*) Feature: the $geoip_city_continent_code, $geoip_latitude, and
$geoip_longitude variables.
Thanks to Arvind Sundararajan.
*) Feature: now the ngx_http_image_filter_module deletes always EXIF
and other application specific data if the data consume more than 5%
of a JPEG file.
*) Feature: now the "msie_padding" directive works for Chrome too.
*) Workaround: now keepalive connections are disabled for Safari.
Thanks to Joshua Sierles.
*) Bugfix: nginx ignored the "private" and "no-store" values in the
"Cache-Control" backend response header line.
*) Bugfix: an "&" character was not escaped when it was copied in
arguments part in a rewrite rule.
*) Bugfix: nginx might be terminated abnormally while a signal
processing or if the directive "timer_resolution" was used on
platforms which do not support kqueue or eventport notification
methods.
Thanks to George Xie and Maxim Dounin.
*) Bugfix: if temporary files and permanent storage area resided at
different file systems, then permanent file modification times were
incorrect.
Thanks to Maxim Dounin.
*) Bugfix: ngx_http_memcached_module might issue the error message
"memcached sent invalid trailer".
Thanks to Maxim Dounin.
*) Bugfix: nginx could not built zlib-1.2.4 library using the library
sources.
Thanks to Maxim Dounin.
*) Bugfix: values of the $query_string, $arg_..., etc. variables cached
in main request were used by the SSI module in subrequests.
*) Bugfix: nginx did not support HTTPS referrers.
*) Bugfix: nginx/Windows might not find file if path in configuration
was given in other character case; the bug had appeared in 0.7.65.
*) Bugfix: the $date_local variable has an incorrect value, if the "%s"
format was used.
Thanks to Maxim Dounin.
*) Bugfix: nginx did not support all ciphers and digests used in client
certificates.
Thanks to Innocenty Enikeew.
*) Bugfix: if ssl_session_cache was not set or was set to "none", then
during client certificate verify the error "session id context
uninitialized" might occur; the bug had appeared in 0.7.1.
*) Bugfix: OpenSSL-1.0.0 compatibility on 64-bit Linux.
Thanks to Maxim Dounin.
*) Bugfix: a geo range returned default value if the range included two
or more /16 networks and did not begin at /16 network boundary.
*) Bugfix: the $uid_got variable might not be used in the SSI and perl
modules.
*) Bugfix: a worker process hung if a FIFO file was requested.
Thanks to Vicente Aguilar and Maxim Dounin.
*) Bugfix: a variable value was repeatedly encoded after each an "echo"
SSI-command output; the bug had appeared in 0.6.14.
*) Bugfix: a "stub" parameter of an "include" SSI directive was not
used, if empty response has 200 status code.
*) Bugfix: a block used in a "stub" parameter of an "include" SSI
directive was output with "text/plain" MIME type.
*) Bugfix: if a proxied or FastCGI request was internally redirected to
another proxied or FastCGI location, then a segmentation fault might
occur in a worker process; the bug had appeared in 0.7.65.
Thanks to Yichun Zhang.
*) Bugfix: IMAP connections may hang until they timed out while talking
to Zimbra server.
Thanks to Alan Batie.
*) Bugfix: nginx did not support chunked transfer encoding for 201
responses.
Thanks to Julian Reich.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 07 Jun 2010 00:00:00 +0400 |
parents | 499474178a11 |
children |
comparison
equal
deleted
inserted
replaced
507:bfc170196f52 | 508:68c0ae0a4959 |
---|---|
29 "</body>" CRLF | 29 "</body>" CRLF |
30 "</html>" CRLF | 30 "</html>" CRLF |
31 ; | 31 ; |
32 | 32 |
33 | 33 |
34 static u_char ngx_http_msie_stub[] = | 34 static u_char ngx_http_msie_padding[] = |
35 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 35 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
36 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 36 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
37 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 37 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
38 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 38 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
39 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 39 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
40 "<!-- The padding to disable MSIE's friendly error page -->" CRLF | 40 "<!-- a padding to disable MSIE and Chrome friendly error page -->" CRLF |
41 ; | 41 ; |
42 | 42 |
43 | 43 |
44 static u_char ngx_http_msie_refresh_head[] = | 44 static u_char ngx_http_msie_refresh_head[] = |
45 "<html><head><meta http-equiv=\"Refresh\" content=\"0; URL="; | 45 "<html><head><meta http-equiv=\"Refresh\" content=\"0; URL="; |
515 r->expect_tested = 1; | 515 r->expect_tested = 1; |
516 } | 516 } |
517 | 517 |
518 r->err_status = overwrite; | 518 r->err_status = overwrite; |
519 | 519 |
520 r->zero_in_uri = 0; | |
521 | |
522 if (ngx_http_complex_value(r, &err_page->value, &uri) != NGX_OK) { | 520 if (ngx_http_complex_value(r, &err_page->value, &uri) != NGX_OK) { |
523 return NGX_ERROR; | 521 return NGX_ERROR; |
524 } | 522 } |
525 | 523 |
526 if (uri.data[0] == '/') { | 524 if (uri.data[0] == '/') { |
596 if (!r->zero_body) { | 594 if (!r->zero_body) { |
597 if (ngx_http_error_pages[err].len) { | 595 if (ngx_http_error_pages[err].len) { |
598 r->headers_out.content_length_n = ngx_http_error_pages[err].len | 596 r->headers_out.content_length_n = ngx_http_error_pages[err].len |
599 + len; | 597 + len; |
600 if (clcf->msie_padding | 598 if (clcf->msie_padding |
601 && r->headers_in.msie | 599 && (r->headers_in.msie || r->headers_in.chrome) |
602 && r->http_version >= NGX_HTTP_VERSION_10 | 600 && r->http_version >= NGX_HTTP_VERSION_10 |
603 && err >= NGX_HTTP_LEVEL_300) | 601 && err >= NGX_HTTP_LEVEL_300) |
604 { | 602 { |
605 r->headers_out.content_length_n += | 603 r->headers_out.content_length_n += |
606 sizeof(ngx_http_msie_stub) - 1; | 604 sizeof(ngx_http_msie_padding) - 1; |
607 msie_padding = 1; | 605 msie_padding = 1; |
608 } | 606 } |
609 | 607 |
610 r->headers_out.content_type_len = sizeof("text/html") - 1; | 608 r->headers_out.content_type_len = sizeof("text/html") - 1; |
611 r->headers_out.content_type.len = sizeof("text/html") - 1; | 609 r->headers_out.content_type.len = sizeof("text/html") - 1; |
669 if (b == NULL) { | 667 if (b == NULL) { |
670 return NGX_ERROR; | 668 return NGX_ERROR; |
671 } | 669 } |
672 | 670 |
673 b->memory = 1; | 671 b->memory = 1; |
674 b->pos = ngx_http_msie_stub; | 672 b->pos = ngx_http_msie_padding; |
675 b->last = ngx_http_msie_stub + sizeof(ngx_http_msie_stub) - 1; | 673 b->last = ngx_http_msie_padding + sizeof(ngx_http_msie_padding) - 1; |
676 | 674 |
677 out[1].next = &out[2]; | 675 out[1].next = &out[2]; |
678 out[2].buf = b; | 676 out[2].buf = b; |
679 out[2].next = NULL; | 677 out[2].next = NULL; |
680 } | 678 } |