insomnia
insomnia copied to clipboard
Latest version unable to parse curl with @ symbol and strips = sign as well
Expected Behavior
Pasting a curl string with an @
symbol in the --data
section to parse correctly (as it did in previous version 2022.6.0).
Here is an example simplified curl that will demonstrate the issue:
curl --request POST --url http://localhost:4001/v2 --header 'Content-Type: application/json' --data '{"query":"query Worlds($isIncluded: Boolean = false) {\n worlds {\n id\n label @include(if: $isIncluded)\n }\n}","variables":{},"operationName":"Worlds"}'
Version 2022.6.0 (expected)
Actual Behavior
Version 2023.2.2
The parser appears to terminate and anything after the @
symbol is replaced with the word undefined
.
Reproduction Steps
- Copy the curl sample from expected behavior section
- Paste in the address/url bar
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Additional Information
I recently upgraded to the latest version and noticed a regression with the paste curl feature (that is, pasting a curl string directly into the address bar).
I think this may be related to issue #5400 (closed) and PR #5409 (closed) but not 100% sure on this.
Insomnia Version
2023.2.2
What operating system are you using?
macOS
Operating System Version
Darwin arm64 22.5.0
Installation method
Internal update
Last Known Working Insomnia version
2022.6.0