Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
650:d865681780b6 | 651:39b7d7b33c91 |
---|---|
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; |