Revert "BUG/MINOR: http-htx: Don't consider an URI as normalized after a set-uri action"

This reverts commit 7533b98b8a.

This fix is reverted for now because it may introduce issues with some
config. So we want to announce the possible breakage in the 2.6.7 and
include the fix into the 2.6.8. This way, users will have some time to
modify their configuration.
This commit is contained in:
Christopher Faulet
2022-12-02 15:22:28 +01:00
parent b1351c1a05
commit f7acbd8407
2 changed files with 3 additions and 6 deletions

View File

@ -7284,11 +7284,9 @@ http-request set-uri <fmt> [ { if | unless } <condition> ]
This rewrites the request URI with the result of the evaluation of format
string <fmt>. The scheme, authority, path and query string are all replaced
at once. This can be used to rewrite hosts in front of proxies, or to perform
complex modifications to the URI such as moving parts between the path and
the query string. If an absolute URI is set, it will be sent as is to
HTTP/1.1 servers. If it is not the desired behavior, the host, the path
and/or the query string should be set separately.
at once. This can be used to rewrite hosts in front of proxies, or to
perform complex modifications to the URI such as moving parts between the
path and the query string.
See also "http-request set-path" and "http-request set-query".
http-request set-var(<var-name>[,<cond> ...]) <expr> [ { if | unless } <condition> ]

View File

@ -391,7 +391,6 @@ int http_replace_req_uri(struct htx *htx, const struct ist uri)
sl = http_get_stline(htx);
ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() succeded */
sl->flags &= ~HTX_SL_F_NORMALIZED_URI;
if (!http_update_host(htx, sl, uri))
goto fail;