diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-01-08 00:26:12 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 19:54:29 -0400 |
commit | 1474be78592e0b6566ae23002ab760c6d493c28e (patch) | |
tree | 6d0990db65bc7a238a5027c7e8498f336076c40d /src/mod_proxy.c | |
parent | 6fe031ef37e71a78c456cd9e954f8514ba5babd0 (diff) | |
download | lighttpd-git-1474be78592e0b6566ae23002ab760c6d493c28e.tar.gz |
[core] move addtl request-specific struct members
Diffstat (limited to 'src/mod_proxy.c')
-rw-r--r-- | src/mod_proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index c55620d9..03c99cdf 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -821,7 +821,7 @@ static handler_t proxy_create_env(gw_handler_ctx *gwhctx) { const int upgrade = hctx->conf.header.upgrade && (NULL != http_header_request_get(con, HTTP_HEADER_UPGRADE, CONST_STR_LEN("Upgrade"))); size_t rsz = (size_t)(con->read_queue->bytes_out - hctx->gw.wb->bytes_in); - buffer * const b = chunkqueue_prepend_buffer_open_sz(hctx->gw.wb, rsz < 65536 ? rsz : con->header_len); + buffer * const b = chunkqueue_prepend_buffer_open_sz(hctx->gw.wb, rsz < 65536 ? rsz : con->request.rqst_header_len); /* build header */ @@ -949,7 +949,7 @@ static handler_t proxy_create_env(gw_handler_ctx *gwhctx) { chunkqueue_prepend_buffer_commit(hctx->gw.wb); if (con->request.reqbody_length) { - chunkqueue_append_chunkqueue(hctx->gw.wb, con->request_content_queue); + chunkqueue_append_chunkqueue(hctx->gw.wb, con->request.reqbody_queue); if (con->request.reqbody_length > 0) hctx->gw.wb_reqlen += con->request.reqbody_length; /* total req size */ else /* as-yet-unknown total request size (Transfer-Encoding: chunked)*/ @@ -965,7 +965,7 @@ static handler_t proxy_create_env_connect(gw_handler_ctx *gwhctx) { handler_ctx *hctx = (handler_ctx *)gwhctx; connection *con = hctx->gw.remote_conn; con->http_status = 200; /* OK */ - con->file_started = 1; + con->response.resp_body_started = 1; gw_set_transparent(&hctx->gw); http_response_upgrade_read_body_unknown(con); |