Mercurial > hg > nginx-vendor-0-8
comparison src/http/modules/ngx_http_empty_gif_module.c @ 336:1c519aff5c0c NGINX_0_6_12
nginx 0.6.12
*) Change: mail proxy was split on three modules: pop3, imap and smtp.
*) Feature: the --without-mail_pop3_module, --without-mail_imap_module,
and --without-mail_smtp_module configuration parameters.
*) Feature: the "smtp_greeting_delay" and "smtp_client_buffer"
directives of the ngx_mail_smtp_module.
*) Bugfix: the trailing wildcards did not work; bug appeared in 0.6.9.
*) Bugfix: nginx could not start on Solaris if the shared PCRE library
located in non-standard place was used.
*) Bugfix: the "proxy_hide_header" and "fastcgi_hide_header" directives
did not hide response header lines whose name was longer than 32
characters.
Thanks to Manlio Perillo.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 21 Sep 2007 00:00:00 +0400 |
parents | 9fc4ab6673f9 |
children | 10cc350ed8a1 |
comparison
equal
deleted
inserted
replaced
335:9a32ae248b7a | 336:1c519aff5c0c |
---|---|
126 r->headers_out.content_type.data = (u_char *) "image/gif"; | 126 r->headers_out.content_type.data = (u_char *) "image/gif"; |
127 | 127 |
128 if (r->method == NGX_HTTP_HEAD) { | 128 if (r->method == NGX_HTTP_HEAD) { |
129 r->headers_out.status = NGX_HTTP_OK; | 129 r->headers_out.status = NGX_HTTP_OK; |
130 | 130 |
131 rc = ngx_http_send_header(r); | 131 return ngx_http_send_header(r); |
132 | |
133 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { | |
134 return rc; | |
135 } | |
136 } | 132 } |
137 | 133 |
138 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); | 134 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); |
139 if (b == NULL) { | 135 if (b == NULL) { |
140 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 136 return NGX_HTTP_INTERNAL_SERVER_ERROR; |