comparison src/http/ngx_http_header_filter_module.c @ 386:1172e6d6f40f NGINX_0_7_5

nginx 0.7.5 *) Bugfixes in variables support in the "access_log" directive; the bug had appeared in 0.7.4. *) Bugfix: nginx could not be built --without-http_gzip_module; the bug had appeared in 0.7.3. Thanks to Kirill A. Korinskiy. *) Bugfix: if sub_filter and SSI were used together, then responses might were transferred incorrectly.
author Igor Sysoev <http://sysoev.ru>
date Tue, 01 Jul 2008 00:00:00 +0400
parents 984bb0b1399b
children 6ebbca3d5ed7
comparison
equal deleted inserted replaced
385:08118f73d9f2 386:1172e6d6f40f
345 345
346 } else { 346 } else {
347 len += sizeof("Connection: closed" CRLF) - 1; 347 len += sizeof("Connection: closed" CRLF) - 1;
348 } 348 }
349 349
350 #if (NGX_HTTP_GZIP)
350 if (r->gzip && clcf->gzip_vary) { 351 if (r->gzip && clcf->gzip_vary) {
351 len += sizeof("Vary: Accept-Encoding" CRLF) - 1; 352 len += sizeof("Vary: Accept-Encoding" CRLF) - 1;
352 } 353 }
354 #endif
353 355
354 part = &r->headers_out.headers.part; 356 part = &r->headers_out.headers.part;
355 header = part->elts; 357 header = part->elts;
356 358
357 for (i = 0; /* void */; i++) { 359 for (i = 0; /* void */; i++) {
518 } else { 520 } else {
519 b->last = ngx_cpymem(b->last, "Connection: close" CRLF, 521 b->last = ngx_cpymem(b->last, "Connection: close" CRLF,
520 sizeof("Connection: close" CRLF) - 1); 522 sizeof("Connection: close" CRLF) - 1);
521 } 523 }
522 524
525 #if (NGX_HTTP_GZIP)
523 if (r->gzip && clcf->gzip_vary) { 526 if (r->gzip && clcf->gzip_vary) {
524 b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF, 527 b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF,
525 sizeof("Vary: Accept-Encoding" CRLF) - 1); 528 sizeof("Vary: Accept-Encoding" CRLF) - 1);
526 } 529 }
530 #endif
527 531
528 part = &r->headers_out.headers.part; 532 part = &r->headers_out.headers.part;
529 header = part->elts; 533 header = part->elts;
530 534
531 for (i = 0; /* void */; i++) { 535 for (i = 0; /* void */; i++) {