Skip to content

Commit

Permalink
feat(*): decode api request json body with array metatable
Browse files Browse the repository at this point in the history
  • Loading branch information
windmgc committed May 13, 2024
1 parent aa34df3 commit 3febe5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resty/aws/request/execute.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local http = require "resty.luasocket.http"
local cjson = require "cjson"
local json_decode = require("cjson.safe").new().decode

cjson.decode_array_with_array_mt(true)

-- TODO: retries and back-off: https://docs.aws.amazon.com/general/latest/gr/api-retries.html

-- implement AWS api protocols.
Expand Down

0 comments on commit 3febe5a

Please sign in to comment.