Mercurial > hg > nginx-mail
diff src/http/modules/ngx_http_empty_gif_module.c @ 200:d2ae1c9f1fd3 NGINX_0_3_47
nginx 0.3.47
*) Feature: the "upstream" directive.
*) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the
SSI command is always removed.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 23 May 2006 00:00:00 +0400 |
parents | 003bd800ec2a |
children | fa32d59d9a15 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_empty_gif_module.c +++ b/src/http/modules/ngx_http_empty_gif_module.c @@ -135,7 +135,7 @@ ngx_http_empty_gif_handler(ngx_http_requ } } - b = ngx_create_temp_buf(r->pool, sizeof(ngx_empty_gif)); + b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); if (b == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } @@ -145,6 +145,7 @@ ngx_http_empty_gif_handler(ngx_http_requ b->pos = ngx_empty_gif; b->last = ngx_empty_gif + sizeof(ngx_empty_gif); + b->memory = 1; b->last_buf = 1; r->headers_out.status = NGX_HTTP_OK;