mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1195] Exporting to cURL doesn't include JSON raw data #411
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#411
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LuisMayo on GitHub (Sep 29, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1195
Originally assigned to: @liyasthomas on GitHub.
Describe the bug
When trying to generate cURL of a petition when the JSON has been specified without processing, the cURL-generated code doesn't include said JSON
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When generating the code, the argument to cURL's "-d" flag should be the JSON I typed, instead of an empty JSON*
*It isn't actual an empty JSON, it's a JSON made using the parameters list if you disable the unprocessed data switch
Screenshots

Desktop (please complete the following information):
@liyasthomas commented on GitHub (Sep 29, 2020):
Thanks for reporting the issue. It seems like only key-value pair data is being take into consideration for code gen. Will fix this ASAP.
@LuisMayo commented on GitHub (Sep 29, 2020):
Thanks to you for answering so quickly!
@liyasthomas commented on GitHub (Sep 29, 2020):
This issues was a result of a typo in codegen function. Instead of
rawInputit wasrawInputs. Pushing a fix now.