I will give some code example: ngx_http_my_filter_header_filter(ngx_http_request_t *r) { // (...) // I clear content length, because it will be modified by my filter if (r == r->main) { ngx_http_clear_content_length(r); ngx_http_clear_last_modified(r); } return ngx_http_next_header_filter(r); } ngx_http_myfilter_body_filter(ngx_http_request_t *rby bbm - Nginx Mailing List - English
Hi, I'm writing a filter which do something like this: 1. collect incoming data from chains 2. enqueues some asynchronous connections using nginx event mechanism 3. returns NGX_DONE How should I finalize work of this filter from callback? Calling next_body_filter(request, result) from callback doesn't work, probably because of NGX_DONE returned from body_filter. Calling next_body_filtby bbm - Nginx Mailing List - English
Hi, I have exactly the same problem. I solved it temporarily by writing: .... rc = ngx_http_next_body_filter(r, in); ngx_http_finalize_request(r, rc); in callback function. It seems to work fine, however I don't know whether this is recommended way to do this. Does anybody know how processing of request should be resumed?by bbm - Nginx Mailing List - English
Hi, I need to create a subrequest which will be handled by specified module regardless of its uri and nginx config. Is it possible? Just to tell nginx - for handling this subrequest use my_module, forget your configuration.by bbm - How to...