You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2026/09/05 22:51:00 UTC
[jira] [Resolved] (THRIFT-5922) Lua: THttpTransport assumes header keys are case-sensitive
[ https://issues.apache.org/jira/browse/THRIFT-5922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-5922.
--------------------------------
Fix Version/s: 0.23.0
Resolution: Fixed
> Lua: THttpTransport assumes header keys are case-sensitive
> ----------------------------------------------------------
>
> Key: THRIFT-5922
> URL: https://issues.apache.org/jira/browse/THRIFT-5922
> Project: Thrift
> Issue Type: Bug
> Components: Lua - Library
> Affects Versions: 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.14.1, 0.14.2, 0.16.0, 0.17.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.21.0, 0.22.0
> Reporter: Jonas
> Priority: Minor
> Labels: easyfix
> Fix For: 0.23.0
>
> Original Estimate: 1h
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> The lua HTTP Transport assumes that casing of header keys is preserved over the network. Thus when the traffic is routed through a proxy that changes the header keys to be all lowercase (such as when using kourier, which is the default ingress for knative), the client breaks because it fails to retrieve `headers["Content-Length"]` when `headers["content-length"]` would be present.
> This is also different from all other language HTTP transport implementations, where either the library code or some used library makes sure to ignore casing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)