Skip to content

Commit 114a09a

Browse files
committed
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

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy