Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_empty_gif_module.c @ 613:8246d8a2c2be NGINX_0_8_37
nginx 0.8.37
*) Feature: the ngx_http_split_clients_module.
*) Feature: the "map" directive supports keys more than 255 characters.
*) Bugfix: nginx ignored the "private" and "no-store" values in the
"Cache-Control" backend response header line.
*) Bugfix: a "stub" parameter of an "include" SSI directive was not
used, if empty response has 200 status code.
*) 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.8.33.
Thanks to Yichun Zhang.
*) Bugfix: IMAP connections may hang until they timed out while talking
to Zimbra server.
Thanks to Alan Batie.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 17 May 2010 00:00:00 +0400 |
parents | 76a79816b771 |
children | 4d3e880ce86c |
comparison
equal
deleted
inserted
replaced
612:19b134bf21c0 | 613:8246d8a2c2be |
---|---|
121 if (rc != NGX_OK) { | 121 if (rc != NGX_OK) { |
122 return rc; | 122 return rc; |
123 } | 123 } |
124 | 124 |
125 r->headers_out.content_type_len = sizeof("image/gif") - 1; | 125 r->headers_out.content_type_len = sizeof("image/gif") - 1; |
126 r->headers_out.content_type.len = sizeof("image/gif") - 1; | 126 ngx_str_set(&r->headers_out.content_type, "image/gif"); |
127 r->headers_out.content_type.data = (u_char *) "image/gif"; | |
128 | 127 |
129 if (r->method == NGX_HTTP_HEAD) { | 128 if (r->method == NGX_HTTP_HEAD) { |
130 r->headers_out.status = NGX_HTTP_OK; | 129 r->headers_out.status = NGX_HTTP_OK; |
131 r->headers_out.content_length_n = sizeof(ngx_empty_gif); | 130 r->headers_out.content_length_n = sizeof(ngx_empty_gif); |
132 r->headers_out.last_modified_time = 23349600; | 131 r->headers_out.last_modified_time = 23349600; |