<div dir="ltr"><div style><div>Hello,</div><div><br></div><div>in case of gzip filter output for range header request(Range: start-end), </div><div>range module is not work, attached patch fixes this.</div><div><br></div><div>
Thanks,</div><div>Zhou.Lei</div></div><div><br></div><div><br></div><div>diff -urN nginx-1.4.0/auto/modules nginx-1.4.0-patched/auto/modules</div><div>--- nginx-1.4.0/auto/modules<span class="" style="white-space:pre"> </span>2013-03-20 18:36:57.000000000 +0800</div>
<div>+++ nginx-1.4.0-patched/auto/modules<span class="" style="white-space:pre"> </span>2013-05-03 10:29:33.000000000 +0800</div><div>@@ -125,8 +125,6 @@</div><div> HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SPDY_FILTER_MODULE"</div>
<div> fi</div><div> </div><div>-HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_RANGE_HEADER_FILTER_MODULE"</div><div>-</div><div> if [ $HTTP_GZIP = YES ]; then</div><div> have=NGX_HTTP_GZIP . auto/have</div>
<div> USE_ZLIB=YES</div><div>@@ -134,6 +132,8 @@</div><div> HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_SRCS"</div><div> fi</div><div> </div><div>+HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_RANGE_HEADER_FILTER_MODULE"</div>
<div>+</div><div> if [ $HTTP_POSTPONE = YES ]; then</div><div> HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"</div><div> HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"</div>
<div>diff -urN nginx-1.4.0/src/http/modules/ngx_http_gzip_filter_module.c nginx-1.4.0-patched/src/http/modules/ngx_http_gzip_filter_module.c</div><div>--- nginx-1.4.0/src/http/modules/ngx_http_gzip_filter_module.c<span class="" style="white-space:pre"> </span>2013-03-11 19:19:58.000000000 +0800</div>
<div>+++ nginx-1.4.0-patched/src/http/modules/ngx_http_gzip_filter_module.c<span class="" style="white-space:pre"> </span>2013-05-03 10:31:14.000000000 +0800</div><div>@@ -245,6 +245,7 @@</div><div> </div><div> if (!conf->enable</div>
<div> || (r->headers_out.status != NGX_HTTP_OK</div><div>+ && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT</div><div> && r->headers_out.status != NGX_HTTP_FORBIDDEN</div>
<div> && r->headers_out.status != NGX_HTTP_NOT_FOUND)</div><div> || (r->headers_out.content_encoding</div></div>