ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 0.7.4 access_log fixe



Igor Sysoev -> nginx-ru@xxxxxxxxx  @ Mon, 30 Jun 2008 20:03:25 +0400:

 IS> Исправление для 0.7.4.

Небольшое исправление для 0.7.4. Не собирается без gzip'а

diff -r ac5cf7d3a0d2 src/http/ngx_http_header_filter_module.c
--- a/src/http/ngx_http_header_filter_module.c  Tue Jul 01 01:22:43 2008 +0400
+++ b/src/http/ngx_http_header_filter_module.c  Tue Jul 01 01:25:14 2008 +0400
@@ -347,9 +347,11 @@
         len += sizeof("Connection: closed" CRLF) - 1;
     }
 
+#if (NGX_HTTP_GZIP)
     if (r->gzip && clcf->gzip_vary) {
         len += sizeof("Vary: Accept-Encoding" CRLF) - 1;
     }
+#endif
 
     part = &r->headers_out.headers.part;
     header = part->elts;
@@ -520,10 +522,12 @@
                              sizeof("Connection: close" CRLF) - 1);
     }
 
+#if (NGX_HTTP_GZIP)
     if (r->gzip && clcf->gzip_vary) {
         b->last = ngx_cpymem(b->last, "Vary: Accept-Encoding" CRLF,
                              sizeof("Vary: Accept-Encoding" CRLF) - 1);
     }
+#endif
 
     part = &r->headers_out.headers.part;
     header = part->elts;

-- 
| |*| |  Kirill A. Korinskiy <catap@xxxxxxxx>
| | |*|  proud (maniac)? (developer|hacker)
|*|*|*|  http://catap.ru/ - +7 (916) 3-604-704 - xmpp:catap@xxxxxxxx

Attachment: pgp22adL3WmtN.pgp
Description: PGP signature



 




Copyright © Lexa Software, 1996-2009.