We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363f4a3 commit 0ecbcf8Copy full SHA for 0ecbcf8
lib/resty/http_headers.lua
@@ -47,14 +47,9 @@ function _M.new(self)
47
}
48
49
mt.__index = function(t, k)
50
- local matched = rawget(t, k)
51
- if matched then
52
- return matched
53
- else
54
- local k_hyphened = hyphenate(k)
55
- local k_normalised = str_lower(k_hyphened)
56
- return rawget(t, mt.normalised[k_normalised])
57
- end
+ local k_hyphened = hyphenate(k)
+ local k_normalised = str_lower(k_hyphened)
+ return rawget(t, mt.normalised[k_normalised])
58
end
59
60
-- First check the normalised table. If there's no match (first time) add an entry for
0 commit comments