Skip to content

Commit 380389c

Browse files
committed
Fix non registered context to fallback to normal processing
1 parent 1f01c53 commit 380389c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manager/ngx_http_proxy_manager_module.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,9 @@ ngx_int_t ngx_http_proxy_manager_handler(ngx_http_request_t *r) {
15121512
plcf = ngx_http_get_proxy_conf(r, ctx);
15131513

15141514
if (plcf == NULL) {
1515-
return NGX_HTTP_INTERNAL_SERVER_ERROR;
1515+
/* Cannot find registered context
1516+
return and proceed to normal nginx process */
1517+
return NGX_DECLINED;
15161518
}
15171519

15181520
ngx_http_set_ctx(r, ctx, ngx_http_manager_module);

0 commit comments

Comments
 (0)