Gozala / Gozala/querystring

Trailing space as + causes a string param to not be decoded

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
284
Forks
74
PR merge metrics
No merged PRs in 30d

Description

Example
```
ToCountry=US&Body=No%2C+I%E2%80%99m+ill+&FromCountry=US
```
Notice the + sign at the end of the Body param

After calling `.parse` the Body param is not decoded
```
{"ToCountry":"US","Body":"No%2C I%E2%80%99m ill ","FromCountry":"US"}
```

It works if the trailing + sign is at the end of the string
```
ToCountry=US&FromCountry=US&Body=No%2C+I%E2%80%99m+ill+
```
Once parsed
```
{"ToCountry":"US","FromCountry":"US","Body":"No, I’m ill "}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.