Skip to content

Commit

Permalink
update condition checking where content handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Taymindis committed Nov 17, 2018
1 parent ef39e77 commit 114a09a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ngx_link_func_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,12 @@ ngx_http_link_func_precontent_handler(ngx_http_request_t *r) {

static ngx_int_t
ngx_http_link_func_content_handler(ngx_http_request_t *r) {
ngx_http_link_func_loc_conf_t *lcf = ngx_http_get_module_loc_conf(r, ngx_http_link_func_module);

if (lcf->_handler == NULL) {
return NGX_DECLINED;
}

return ngx_http_link_func_output_filter(r);
} /* ngx_http_link_func_content_handler */

Expand Down

0 comments on commit 114a09a

Please sign in to comment.