Skip to content

Commit 0671cf4

Browse files
authored
Merge pull request #132 from AndrewBarba/master
Decode query parameters from ALB
2 parents 811ff22 + b091f5e commit 0671cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class REQUEST {
7575
'queryStringParameters' in this.app._event ? {} // do nothing
7676
: Object.keys(Object.assign({},this.app._event.multiValueQueryStringParameters))
7777
.reduce((qs,key) => Object.assign(qs, // get the last value of the array
78-
{ [key]: this.app._event.multiValueQueryStringParameters[key].slice(-1)[0] }
78+
{ [key]: decodeURIComponent(this.app._event.multiValueQueryStringParameters[key].slice(-1)[0]) }
7979
), {})
8080
)
8181

0 commit comments

Comments
 (0)