summaryrefslogtreecommitdiff
path: root/src/mod_fastcgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-01-11 00:54:31 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:29 -0400
commit31d9495330fe6242738cdc873a71153dcb03939a (patch)
tree53873e16b998747723f4c7c59e49108dcabab19b /src/mod_fastcgi.c
parenteea7cd3c2f576d1cff6850fa208adc5ee00468e5 (diff)
downloadlighttpd-git-31d9495330fe6242738cdc873a71153dcb03939a.tar.gz
[core] store subrequest_handler instead of mode
store pointer to module in handler_module instead of con->mode id
Diffstat (limited to 'src/mod_fastcgi.c')
-rw-r--r--src/mod_fastcgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c
index 873ed738..4a46ee54 100644
--- a/src/mod_fastcgi.c
+++ b/src/mod_fastcgi.c
@@ -300,7 +300,7 @@ static handler_t fcgi_create_env(handler_ctx *hctx) {
if (0 != http_cgi_headers(con, &opts, fcgi_env_add, b)) {
con->http_status = 400;
- con->mode = DIRECT;
+ con->response.handler_module = NULL;
buffer_clear(b);
chunkqueue_remove_finished_chunks(hctx->wb);
return HANDLER_FINISHED;
@@ -495,7 +495,7 @@ static handler_t fcgi_check_extension(connection *con, void *p_d, int uri_path_h
plugin_data *p = p_d;
handler_t rc;
- if (con->mode != DIRECT) return HANDLER_GO_ON;
+ if (NULL != con->response.handler_module) return HANDLER_GO_ON;
mod_fastcgi_patch_config(con, p);
if (NULL == p->conf.exts) return HANDLER_GO_ON;
@@ -503,7 +503,7 @@ static handler_t fcgi_check_extension(connection *con, void *p_d, int uri_path_h
rc = gw_check_extension(con, p, uri_path_handler, 0);
if (HANDLER_GO_ON != rc) return rc;
- if (con->mode == p->id) {
+ if (con->response.handler_module == p->self) {
handler_ctx *hctx = con->request.plugin_ctx[p->id];
hctx->opts.backend = BACKEND_FASTCGI;
hctx->opts.parse = fcgi_recv_parse;