Skip to content

Commit

Permalink
fix(request): unspecified location goes in body, also for blob
Browse files Browse the repository at this point in the history
previously a "blob" type without location given would be added as a nested data element which was incorrect.
  • Loading branch information
Tieske authored Jun 14, 2024
1 parent 9e66799 commit 086c928
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/resty/aws/request/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ local function build_request(operation, config, params)
if config.protocol == "query" then
-- no location specified, but protocol is query, so it goes into query
request.query[name] = param_value
elseif member_config.type == "blob" then
request.body = param_value
else
-- nowhere else to go, so put it in the body (for json and xml)
body_tbl[name] = param_value
Expand Down

0 comments on commit 086c928

Please sign in to comment.