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>
Sat, 30 Sep 2023 14:35:12 +0000 (15:35 +0100)
commitc566e3b24838103d31c014d12897d86faadad670
tree91f1e02d824f6ae7b2aa821a637b0ed53cad2a0a
parent295849bcd0283800dcb59218c20c6f7bb4f2af43
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