]> git.ipfire.org Git - thirdparty/squid.git/commit
Remove ADD_X_REQUEST_URI (#1607)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 5 Dec 2023 12:31:57 +0000 (12:31 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 5 Dec 2023 12:32:01 +0000 (12:32 +0000)
commita8d51966bd9c10cada68d673014bb734d3291f33
tree3fbb5c37e40cc26798cc4bdc14ebdf188d146034
parente305d7716a2170d0a304e27715209fb00d60a70e
Remove ADD_X_REQUEST_URI (#1607)

This mechanism was supposed to add the client requested URI to
response messages. But in modern Squid the string it uses can
now be modified by adaptation and redirectors.

The following squid.conf setting does a better job of adding the
intended value and does not require a custom build:
  reply_header_add X-Request-URI "%>ru" all

Also, other %ru related format codes can be added at the admin
choice for more flexible troubleshooting.
src/client_side_reply.cc
src/http/RegisteredHeaders.h
src/http/RegisteredHeadersHash.cci
src/http/RegisteredHeadersHash.gperf