Skip to content

Commit

Permalink
chore(pdk): doc a known issue of get_headers()
Browse files Browse the repository at this point in the history
Adressing KAG-2602, #11546
  • Loading branch information
StarlightIbuki committed Nov 13, 2023
1 parent 8d0f9d2 commit 9159217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kong/pdk/service/response.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ local function new(pdk, major_version)
-- kong.log.inspect(headers.x_another[1]) -- "foo bar"
-- kong.log.inspect(headers["X-Another"][2]) -- "baz"
-- end
-- Note that this function returns a proxy table
-- which cannot be iterated with pairs or used as oprand of #.
function response.get_headers(max_headers)
check_phase(header_body_log)

Expand Down

0 comments on commit 9159217

Please sign in to comment.