cool-easter-32542
12/02/2024, 1:54 AMexample header, but whether a or b is sent is likely to vary from run to run:
[GLOBAL.remote_store_headers]
EXAMPLE = "a"
example = "b"
We should validate the option only specifies a header with a single casing (i.e. emit an error like `` Found header example with multiple names: EXAMPLE, example. Choose one only one casing. ``), and normalise to lower case (this would allow simplifying the change in #21684)
---
```
Should this code also deal with multiple key/value pairs of varying case for a single header?
```
I ask because on the Rust side in headers_to_http_header_map the conversion should non-deterministically merge them or the "last" one in iteration order will overwrite. However, on the Python side, it would probably be good to validateand ensure that only key/value pair exists per header, so that the user gets a good error message.headers
Doing that would also allow normalizingbefore then checking forheaders.user-agent
Thoughts?Originally posted by @tdyas in #21684 (comment) pantsbuild/pants