comparison src/http/modules/ngx_http_static_module.c @ 597:9262f520ce21 release-0.3.20

nginx-0.3.20-RELEASE import *) Bugfix: in SSI handling. *) Bugfix: the ngx_http_memcached_module did not support the keys in the "/usr?args" form.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Jan 2006 15:26:57 +0000
parents 284cc140593b
children 858700ae46b4
comparison
equal deleted inserted replaced
596:0381e6d3aa70 597:9262f520ce21
242 242
243 if (ngx_http_set_content_type(r) != NGX_OK) { 243 if (ngx_http_set_content_type(r) != NGX_OK) {
244 return NGX_HTTP_INTERNAL_SERVER_ERROR; 244 return NGX_HTTP_INTERNAL_SERVER_ERROR;
245 } 245 }
246 246
247 if (r->main != r && ngx_file_size(&fi) == 0) { 247 if (r != r->main && ngx_file_size(&fi) == 0) {
248 return ngx_http_send_header(r); 248 return ngx_http_send_header(r);
249 } 249 }
250 250
251 r->allow_ranges = 1; 251 r->allow_ranges = 1;
252 252
270 270
271 b->file_pos = 0; 271 b->file_pos = 0;
272 b->file_last = ngx_file_size(&fi); 272 b->file_last = ngx_file_size(&fi);
273 273
274 b->in_file = b->file_last ? 1: 0; 274 b->in_file = b->file_last ? 1: 0;
275 b->last_buf = (r->main == r) ? 1: 0; 275 b->last_buf = (r == r->main) ? 1: 0;
276 b->last_in_chain = 1; 276 b->last_in_chain = 1;
277 277
278 b->file->fd = fd; 278 b->file->fd = fd;
279 b->file->name = path; 279 b->file->name = path;
280 b->file->log = log; 280 b->file->log = log;