summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2024-04-10 14:00:39 +0800
committerZhidao HONG <z.hong@f5.com>2024-04-11 22:23:23 +0800
commita4dbee147cc13c9eef1f6cb209b4651a1419d17d (patch)
treed9bb5a43b2cfad03cbb29f06aeef5931834c7ee1 /src/nxt_http.h
parent64934e59f9c06f62fe99466b320cd397c8609807 (diff)
downloadunit-a4dbee147cc13c9eef1f6cb209b4651a1419d17d.tar.gz
unit-a4dbee147cc13c9eef1f6cb209b4651a1419d17d.tar.bz2
HTTP: Rewrote url target section in nxt_h1p_peer_header_send()
Previously, proxy request was constructed based on the `r->target` field. However, r->target will remain unchanged in the future, even in cases of URL rewriting because of the requirement change for $request_uri that will be changed to constant. To accommodate this, the r->target should be designed to be constant, but Unit needs to pass a changeable URL to the upstream server. Based on the above, the proxy module can't depend on r->target.
Diffstat (limited to '')
-rw-r--r--src/nxt_http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index e812bd0d..23d86b91 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -192,6 +192,8 @@ struct nxt_http_request_s {
nxt_http_status_t status:16;
uint8_t log_route; /* 1 bit */
+ uint8_t quoted_target; /* 1 bit */
+ uint8_t uri_changed; /* 1 bit */
uint8_t pass_count; /* 8 bits */
uint8_t app_target;