Skip to content

Commit

Permalink
http/local/Address: add the "Host" header to the HTTP cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Apr 11, 2024
1 parent 7c56bb4 commit ecc0953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cm4all-beng-proxy (18.0.64) unstable; urgency=low

* state: fix symlink bug
* lhttp: add the "Host" header to the HTTP cache key

--

Expand Down
3 changes: 3 additions & 0 deletions src/http/local/Address.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ LhttpAddress::GetId(AllocatorPtr alloc) const noexcept
{
const char *p = GetServerId(alloc);

if (host_and_port != nullptr)
p = alloc.Concat(p, ";h=", host_and_port);

if (uri != nullptr)
p = alloc.Concat(p, ";u=", uri);

Expand Down

0 comments on commit ecc0953

Please sign in to comment.