Mercurial > hg > nginx
diff src/http/modules/ngx_http_empty_gif_module.c @ 651:39b7d7b33c91 release-0.3.47
nginx-0.3.47-RELEASE import
*) Feature: the "upstream" directive.
*) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the
SSI command is always removed.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 May 2006 14:54:58 +0000 |
parents | 4946078f0a79 |
children | 63a820b0bc6c |
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;