comparison src/http/modules/ngx_http_empty_gif_module.c @ 448:76a79816b771 NGINX_0_7_36

nginx 0.7.36 *) Feature: a preliminary IPv6 support; the "listen" directive of the HTTP module supports IPv6. *) Bugfix: the $ancient_browser variable did not work for browsers preset by a "modern_browser" directives.
author Igor Sysoev <http://sysoev.ru>
date Sat, 21 Feb 2009 00:00:00 +0300
parents 10cc350ed8a1
children 8246d8a2c2be
comparison
equal deleted inserted replaced
447:40964c811e59 448:76a79816b771
120 120
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 r->headers_out.content_type.data = (u_char *) "image/gif"; 127 r->headers_out.content_type.data = (u_char *) "image/gif";
127 128
128 if (r->method == NGX_HTTP_HEAD) { 129 if (r->method == NGX_HTTP_HEAD) {
129 r->headers_out.status = NGX_HTTP_OK; 130 r->headers_out.status = NGX_HTTP_OK;