You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nighmared (via GitHub)" <gi...@apache.org> on 2026/03/03 15:32:29 UTC
[PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Nighmared opened a new pull request, #3328:
URL: https://github.com/apache/thrift/pull/3328
Client: lua
<!-- Explain the changes in the pull request below: -->
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 cold find?) I did not add tests that isolate this bug, but it's quite obvious from looking at the source.
<!-- We recommend you review the checklist/tips before submitting a pull request. -->
- [x] Did you create an [Apache Jira](https://issues.apache.org/jira/projects/THRIFT/issues/) ticket? ([Request account here](https://selfserve.apache.org/jira-account.html), not required for trivial changes)
- [ x] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
- [x ] Did you squash your changes to a single commit? (not required, but preferred)
- [x ] Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
- [x ] If your change does not involve any code, include `[skip ci]` anywhere in the commit message to free up build resources.
<!--
The Contributing Guide at:
https://github.com/apache/thrift/blob/master/CONTRIBUTING.md
has more details and tips for committing properly.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "thomasbruggink (via GitHub)" <gi...@apache.org>.
thomasbruggink commented on code in PR #3328:
URL: https://github.com/apache/thrift/pull/3328#discussion_r3177405609
##########
lib/lua/THttpTransport.lua:
##########
Review Comment:
I'm not a thrift core developer but since this has already been released I think making a new ticket is a good idea
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "Nighmared (via GitHub)" <gi...@apache.org>.
Nighmared commented on code in PR #3328:
URL: https://github.com/apache/thrift/pull/3328#discussion_r3177030682
##########
lib/lua/THttpTransport.lua:
##########
Review Comment:
@thomasbruggink what is the cleanest way to update this? should I open a new issue on Jira?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "thomasbruggink (via GitHub)" <gi...@apache.org>.
thomasbruggink commented on code in PR #3328:
URL: https://github.com/apache/thrift/pull/3328#discussion_r2901482399
##########
lib/lua/THttpTransport.lua:
##########
Review Comment:
should this line also be comparing lowercase?
now all headers are stored lower but this check is case sensitive
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "Jens-G (via GitHub)" <gi...@apache.org>.
Jens-G commented on PR #3328:
URL: https://github.com/apache/thrift/pull/3328#issuecomment-4007648109
Reference: https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "Jens-G (via GitHub)" <gi...@apache.org>.
Jens-G merged PR #3328:
URL: https://github.com/apache/thrift/pull/3328
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-5922: made http header lookup case insensitive [thrift]
Posted by "Nighmared (via GitHub)" <gi...@apache.org>.
Nighmared commented on code in PR #3328:
URL: https://github.com/apache/thrift/pull/3328#discussion_r2901564014
##########
lib/lua/THttpTransport.lua:
##########
Review Comment:
Yes definitely! I must have missed it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org