Kong / Kong/insomnia

Query can't handle number after %

Open
#4,818 6 comments 0 reactions 1 assignee Claimed by @ZxBing0066 View on GitHub
B-bug N-author-input N-investigation S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

The URI encoding of % isn't handle correct when a number is entered.

```
http://localhost?test=%30%
```

should pass the query `test` with value `%30%`

or

```
http://localhost?test=%2530%25
```

should pass the query `test` with value `%2530%25`

### Actual Behavior

![Screen Shot 2022-05-26 at 6 14 12 PM](https://user-images.githubusercontent.com/24848445/170588525-c80fa66a-2ab9-4460-8018-add3722907e2.png)

![Screen Shot 2022-05-26 at 6 28 05 PM](https://user-images.githubusercontent.com/24848445/170589890-0dd1047c-24fb-4a27-86e1-30bb3da4155c.png)

![Screen Shot 2022-05-26 at 6 28 33 PM](https://user-images.githubusercontent.com/24848445/170589939-9ca865fc-4f7d-448e-88c6-bcd520aa6712.png)

### Reproduction Steps

1. Create a new GET request
2. Go to Query Tab
3. Enter a `test` in New name field
4. Enter `%30%` in New value field
5. Url in preview turns into `0%25`

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

`curl http://localhost?test=%30%` and `curl http://localhost?test=%2530%25` both send the correct

I found this post stating the same issue I'm experiencing:

https://github.com/Kong/insomnia/issues/605#issuecomment-825546206

### Insomnia Version

v2022.3.0

### What operating system are you using?

macOS

### Operating System Version

macOS Monterey Version 12.3.1

### Installation method

insomina.rest

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.