Skip to content

Commit 61159b8

Browse files
Merge pull request #42 from spansh/bug_uri_encoding
[FIX] URI encodes query parameters
2 parents c002167 + 60c099e commit 61159b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class AutoComplete {
605605
method: string = params._HttpMethod(),
606606
url: string = params._Url(),
607607
queryParams: string = params._Pre(),
608-
queryParamsStringify: string = params._QueryArg() + "=" + queryParams;
608+
queryParamsStringify: string = encodeURIComponent(params._QueryArg()) + "=" + encodeURIComponent(queryParams);
609609

610610
if (method.match(/^GET$/i)) {
611611
if (url.indexOf("?") !== -1) {

0 commit comments

Comments
 (0)