Skip to content

Commit

Permalink
fix(kong.tools.http): ensure the EMPTY table returned by `parse_direc…
Browse files Browse the repository at this point in the history
…tive_header` is readonly

Panic on writing the EMPTY table
  • Loading branch information
ADD-SP committed Aug 12, 2024
1 parent f9da6c5 commit 31a1d7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/tools/http.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local pl_tblx = require "pl.tablex"


local type = type
Expand All @@ -23,7 +24,7 @@ local lower = string.lower
local max = math.max
local tab_new = require("table.new")

local EMPTY = {}
local EMPTY = pl_tblx.readonly({})

local _M = {}

Expand Down

0 comments on commit 31a1d7a

Please sign in to comment.