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 169c1a7 commit 1c691a1Copy full SHA for 1c691a1
http/headers.lua
@@ -78,11 +78,11 @@ function headers_mt:__tostring()
78
return string.format("http.headers{%d headers}", self._n)
79
end
80
81
-local function add_to_index(_index, name, i)
82
- local dex = _index[name]
+local function add_to_index(index, name, i)
+ local dex = index[name]
83
if dex == nil then
84
dex = {n=1, i}
85
- _index[name] = dex
+ index[name] = dex
86
else
87
local n = dex.n + 1
88
dex[n] = i
0 commit comments