THRIFT-5922: made http header lookup case insensitive by Nighmared · Pull Request #3328 · apache/thrift
Client: lua
The http transport client breaks when the traffic is routed through a proxy that changes the casing of the header keys. This is not only incorrect but also different from the implementation in all other languages.
This pull request changes this, so http headers are now stored/retrieved in a case insensitive matter.
Since there are no unit tests for lua (that i could find?) I did not add tests that isolate this bug, but it's quite obvious from looking at the source.
- Did you create an Apache Jira ticket? (Request account here, not required for trivial changes)
- If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
- Did you squash your changes to a single commit? (not required, but preferred)
- Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
- If your change does not involve any code, include
[skip ci]anywhere in the commit message to free up build resources.