Skip to content

Commit b091f5e

Browse files
authored
Decode query parameters from ALB
Resolves #131
1 parent 48d5718 commit b091f5e

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)