We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13a887 commit cbd40a4Copy full SHA for cbd40a4
src/resty/aws/request/execute.lua
@@ -55,15 +55,17 @@ local function execute_request(signed_request)
55
if response.headers["application/vnd.amazon.eventstream"] then
56
body_reader = response.body_reader
57
else
58
- body do
+ local this_body do
59
if response.has_body then
60
- body, err = response:read_body()
61
- if not body then
+ this_body, err = response:read_body()
+ if not this_body then
62
return nil, ("failed reading response body from '%s:%s': %s"):format(
63
tostring(signed_request.host),
64
tostring(signed_request.port),
65
tostring(err))
66
end
67
+
68
+ body = this_body
69
70
71
0 commit comments