summaryrefslogtreecommitdiff
path: root/src/mod_scgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-01-06 21:50:50 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:29 -0400
commitaf5df35275b78621747339c0a6b7e14e1913fc4f (patch)
tree5e039e5b4620ba95186828e40d1fb8c4e20eb406 /src/mod_scgi.c
parent8c46768d5bfb26f22447a53988de6ddcf39f567e (diff)
downloadlighttpd-git-af5df35275b78621747339c0a6b7e14e1913fc4f.tar.gz
[core] rename content_length to reqbody_length
rename content_length to reqbody_length in request, to more easily differentiate request body length from response content_length
Diffstat (limited to 'src/mod_scgi.c')
-rw-r--r--src/mod_scgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_scgi.c b/src/mod_scgi.c
index 0abc2530..915ddc8d 100644
--- a/src/mod_scgi.c
+++ b/src/mod_scgi.c
@@ -266,10 +266,10 @@ static handler_t scgi_create_env(handler_ctx *hctx) {
chunkqueue_mark_written(hctx->wb, offset);
#endif
- if (con->request.content_length) {
+ if (con->request.reqbody_length) {
chunkqueue_append_chunkqueue(hctx->wb, con->request_content_queue);
- if (con->request.content_length > 0)
- hctx->wb_reqlen += con->request.content_length; /* total req size */
+ if (con->request.reqbody_length > 0)
+ hctx->wb_reqlen += con->request.reqbody_length; /* total req size */
else /* as-yet-unknown total request size (Transfer-Encoding: chunked)*/
hctx->wb_reqlen = -hctx->wb_reqlen;
}