Skip to content

Commit

Permalink
chore(pdk): doc a known issue of get_headers() (#12006)
Browse files Browse the repository at this point in the history
Adressing KAG-2602, #11546

Co-authored-by: Datong Sun <[email protected]>
  • Loading branch information
StarlightIbuki and dndx authored Nov 14, 2023
1 parent 9393b96 commit fbcec45
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 operand of `#`.
function response.get_headers(max_headers)
check_phase(header_body_log)

Expand Down

1 comment on commit fbcec45

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:fbcec4565ede99ba2019aca90beb0abcae33744e
Artifacts available https://github.com/Kong/kong/actions/runs/6862587471

Please sign in to comment.