Skip to content

Commit ad3de29

Browse files
StarlightIbukiTieske
authored andcommitted
fix: request uri build handling of + in template
Fix #33
1 parent cd4bf70 commit ad3de29

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ Release process:
153153
1. upload using: `VERSION=x.y.z APIKEY=abc... make upload`
154154
1. test installing the rock from LuaRocks
155155

156+
### 1.0.1 (20-Oct-2022)
157+
158+
- fix: for some method incorrect URL is generates because of incorrect handling of "+" in URL template
159+
[#34](https://github.com/Kong/lua-resty-aws/pull/34)
160+
156161
### 1.0.0 (13-Oct-2022)
157162

158163
- fix: `latest` doesn't indicate the most recent service version

src/resty/aws/request/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ local function build_request(operation, config, params)
100100
-- print(name," = ", param_value, ": ",location, " (", locationName,")")
101101

102102
if location == "uri" then
103-
local place_holder = "{" .. locationName .. "}"
103+
local place_holder = "{" .. locationName .. "%+?}"
104104
request.path = request.path:gsub(place_holder, param_value)
105105

106106
elseif location == "querystring" then

0 commit comments

Comments
 (0)