Correctly handle encoding for cache hash generation (#10128)
authorBrian Neradt <brian.neradt@gmail.com>
Tue, 1 Aug 2023 18:51:44 +0000 (13:51 -0500)
committerAdrian Bunk <bunk@debian.org>
Sun, 5 Nov 2023 19:52:00 +0000 (21:52 +0200)
commit1d7eb288c8415f8998bbeba577b9eb70fa405c77
tree0f5076a000662926a711a104d0b368212b82fe8c
parentb6e2785999ee72cb8f262bc5c4d4ce5afc5aa3fa
Correctly handle encoding for cache hash generation (#10128)

Since origins may treat URL encoded or unencoded paths, query
parameters, or fragments differently, we should cache them separately.
This updates our URL cache hashing logic to not unencode these
components of a URI.

Gbp-Pq: Name 0001-Correctly-handle-encoding-for-cache-hash-generation-.patch
proxy/hdrs/URL.cc
proxy/hdrs/unit_tests/test_URL.cc