Skip to content

Commit 114a09a

Browse files
committedNov 17, 2018
update condition checking where content handling
1 parent ef39e77 commit 114a09a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/ngx_link_func_module.c

+6
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,12 @@ ngx_http_link_func_precontent_handler(ngx_http_request_t *r) {
11491149

11501150
static ngx_int_t
11511151
ngx_http_link_func_content_handler(ngx_http_request_t *r) {
1152+
ngx_http_link_func_loc_conf_t *lcf = ngx_http_get_module_loc_conf(r, ngx_http_link_func_module);
1153+
1154+
if (lcf->_handler == NULL) {
1155+
return NGX_DECLINED;
1156+
}
1157+
11521158
return ngx_http_link_func_output_filter(r);
11531159
} /* ngx_http_link_func_content_handler */
11541160

0 commit comments

Comments
 (0)
Failed to load comments.