Open tkluck opened 5 years ago
Thanks Denilson! This is a very clear bug report. We'll need to study twisted's code a bit to find out what's the easiest way to solve it. As it is, the ProxyClientFactory
seems to expect a dictionary interface, but ideally, we fix this in a way that respects header duplication and the header order.
I have a commit that adds a unit test for this case. The test is currently failing (of course, because it shows the bug).
https://github.com/denilsonsa/pac4cli/commit/8249feedea3bf9b773379eb8d13e515eed01c378 https://github.com/tkluck/pac4cli/compare/master...denilsonsa:headers?expand=1
The test expected the exact same headers in the exact same order as the output. But I know multiple duplicate headers may be combined into a single one with their values joined by commas. This test does not support this behavior.
As reported by @denilsonsa over email, discussing his setup in our shared work environment (some details redacted):
edit: redacted some corporate details for non-disclosure and more general applicability.