Skip to content

Commit

Permalink
add more detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Jul 30, 2024
1 parent ca7dabd commit d53d5fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog/unreleased/kong/feat-pdk-unlimited-body-size.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
message: Added negative value to support unlimited body size.
message: Added negative value to support unlimited body size. When parameter `max_allowed_file_size` is negative, `get_raw_body` will return the entire body, but the size of this body will still be limited by Nginx's `client_max_body_size`.
type: feature
scope: PDK
3 changes: 2 additions & 1 deletion kong/pdk/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ local function new(self)
-- @function kong.request.get_raw_body
-- @phases rewrite, access, response, admin_api
-- @max_allowed_file_size[opt] number the max allowed file size to be read from,
-- less than zero mean no limit.
-- less than zero mean no limit, but the size of this body will still be limited
-- by Nginx's client_max_body_size.
-- @treturn string|nil The plain request body or nil if it does not fit into
-- the NGINX temporary buffer.
-- @treturn nil|string An error message.
Expand Down

0 comments on commit d53d5fc

Please sign in to comment.