comparison 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
comparison
equal deleted inserted replaced
199:869664706c09 200:d2ae1c9f1fd3
133 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { 133 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
134 return rc; 134 return rc;
135 } 135 }
136 } 136 }
137 137
138 b = ngx_create_temp_buf(r->pool, sizeof(ngx_empty_gif)); 138 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
139 if (b == NULL) { 139 if (b == NULL) {
140 return NGX_HTTP_INTERNAL_SERVER_ERROR; 140 return NGX_HTTP_INTERNAL_SERVER_ERROR;
141 } 141 }
142 142
143 out.buf = b; 143 out.buf = b;
144 out.next = NULL; 144 out.next = NULL;
145 145
146 b->pos = ngx_empty_gif; 146 b->pos = ngx_empty_gif;
147 b->last = ngx_empty_gif + sizeof(ngx_empty_gif); 147 b->last = ngx_empty_gif + sizeof(ngx_empty_gif);
148 b->memory = 1;
148 b->last_buf = 1; 149 b->last_buf = 1;
149 150
150 r->headers_out.status = NGX_HTTP_OK; 151 r->headers_out.status = NGX_HTTP_OK;
151 r->headers_out.content_length_n = sizeof(ngx_empty_gif); 152 r->headers_out.content_length_n = sizeof(ngx_empty_gif);
152 r->headers_out.last_modified_time = 23349600; 153 r->headers_out.last_modified_time = 23349600;