help with gunzip filter

honwel honwel at 163.com
Thu Oct 18 05:08:26 UTC 2012


hi,all
    i recently download the nginx-1.3.7 source from www.nginx.org, and i debug the gunzip module because i want unzip content from server and filter the content(use subs filter module-weibin yao), but gunzip nerver work , so i tracking the code, and see this line from function ngx_http_gunzip_header_filter(ngx_http_request_t *r)
static ngx_int_t
1 ngx_http_gunzip_header_filter(ngx_http_request_t *r)
2 {
   ......
   ......
3    if (!r->gzip_tested) {
4        if (ngx_http_gzip_ok(r) == NGX_OK) {
5            return ngx_http_next_header_filter(r);
6        }
7    } else if (!r->gzip_ok) {
8        return ngx_http_next_header_filter(r);
    }
......
......
}
 
l think line 4 should be    "if (ngx_http_gzip_ok(r) != NGX_OK) { ...  }" and change it , then i recomplie source code, make and debug use gdb tool, so function is run ok,  is there a bug?
 
thanks a lot.
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20121018/14a86079/attachment.html>


More information about the nginx-devel mailing list