Skip to content

Commit

Permalink
refactor(pdk): remove duplicated code in set_status() (#11715)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Oct 17, 2023
1 parent 348c980 commit 7ed0c08
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kong/pdk/response.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,6 @@ local function new(self, major_version)
error(fmt("code must be a number between %u and %u", MIN_STATUS_CODE, MAX_STATUS_CODE), 2)
end

if ngx.headers_sent then
error("headers have already been sent", 2)
end

ngx.status = status
end

Expand Down

1 comment on commit 7ed0c08

@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:7ed0c08ab1d679523e454cf08e2096d4ddc8f12d
Artifacts available https://github.com/Kong/kong/actions/runs/6541772945

Please sign in to comment.