comparison src/http/modules/ngx_http_static_module.c @ 146:36af50a5582d NGINX_0_3_20

nginx 0.3.20 *) Bugfix: in SSI handling. *) Bugfix: the ngx_http_memcached_module did not support the keys in the "/usr?args" form.
author Igor Sysoev <http://sysoev.ru>
date Wed, 11 Jan 2006 00:00:00 +0300
parents 3656228c0b56
children 396dbbc06dd7
comparison
equal deleted inserted replaced
145:85a84f8da62b 146:36af50a5582d
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;