comparison src/http/modules/ngx_http_ssi_filter_module.c @ 62:0790a8599248 NGINX_0_1_31

nginx 0.1.31 *) Bugfix: the response encrypted by SSL may not transferred complete. *) Bugfix: errors while processing FastCGI response by SSI. *) Bugfix: errors while using SSI and gzipping. *) Bugfix: the redirect with the 301 code was transferred without response body; bug appeared in 0.1.30.
author Igor Sysoev <http://sysoev.ru>
date Mon, 16 May 2005 00:00:00 +0400
parents b55cbf18157e
children da9a3b14312d
comparison
equal deleted inserted replaced
61:345d4a254bfb 62:0790a8599248
319 319
320 ctx->timefmt.len = sizeof("%A, %d-%b-%Y %H:%M:%S %Z") - 1; 320 ctx->timefmt.len = sizeof("%A, %d-%b-%Y %H:%M:%S %Z") - 1;
321 ctx->timefmt.data = (u_char *) "%A, %d-%b-%Y %H:%M:%S %Z"; 321 ctx->timefmt.data = (u_char *) "%A, %d-%b-%Y %H:%M:%S %Z";
322 322
323 r->filter_need_in_memory = 1; 323 r->filter_need_in_memory = 1;
324 r->filter_ssi_need_in_memory = 1;
325 324
326 if (r->main == NULL) { 325 if (r->main == NULL) {
327 r->headers_out.content_length_n = -1; 326 r->headers_out.content_length_n = -1;
328 if (r->headers_out.content_length) { 327 if (r->headers_out.content_length) {
329 r->headers_out.content_length->hash = 0; 328 r->headers_out.content_length->hash = 0;
462 cl->buf = b; 461 cl->buf = b;
463 } 462 }
464 463
465 ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t)); 464 ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t));
466 465
466 b->pos = ctx->copy_start;
467 b->last = ctx->copy_end;
468 b->shadow = NULL;
467 b->last_buf = 0; 469 b->last_buf = 0;
468 b->recycled = 0; 470 b->recycled = 0;
469 b->pos = ctx->copy_start;
470 b->last = ctx->copy_end;
471 471
472 if (b->in_file) { 472 if (b->in_file) {
473 if (conf->min_file_chunk < (size_t) (b->last - b->pos)) 473 if (conf->min_file_chunk < (size_t) (b->last - b->pos))
474 { 474 {
475 b->file_last = b->file_pos + (b->last - b->start); 475 b->file_last = b->file_pos + (b->last - b->start);