comparison src/http/modules/perl/nginx.xs @ 4196:190ae1a7f917

Handling of Content-Encoding set from perl. This fixes double gzipping in case of gzip filter being enabled while perl returns already gzipped response.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 11 Oct 2011 18:01:38 +0000
parents ca3230f2c6d8
children d620f497c50f
comparison
equal deleted inserted replaced
4195:35f4997c08ce 4196:190ae1a7f917
472 { 472 {
473 r->headers_out.content_length_n = (off_t) SvIV(value); 473 r->headers_out.content_length_n = (off_t) SvIV(value);
474 r->headers_out.content_length = header; 474 r->headers_out.content_length = header;
475 } 475 }
476 476
477 if (header->key.len == sizeof("Content-Encoding") - 1
478 && ngx_strncasecmp(header->key.data, "Content-Encoding",
479 sizeof("Content-Encoding") - 1) == 0)
480 {
481 r->headers_out.content_encoding = header;
482 }
483
477 484
478 void 485 void
479 filename(r) 486 filename(r)
480 CODE: 487 CODE:
481 488