Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liverpool8056 committed Nov 30, 2023
1 parent cb2626c commit 7ee8fcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/error_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ return function(ctx)
local status = kong.response.get_status()
local message = get_body(status)

-- Nginx 494 status code is used internally when the client sends
-- too large or invalid HTTP headers. Kong is obliged to convert
-- it back to `400 Bad Request`.
if status == 494 then
status = 400
end
Expand Down

0 comments on commit 7ee8fcd

Please sign in to comment.