curlconverter / curlconverter

Transpile curl commands into Python, JavaScript and 27 other languages
https://curlconverter.com
MIT License
7.17k stars 867 forks source link

Set data to a string in JSON output #619

Closed verhovsky closed 4 months ago

verhovsky commented 4 months ago

Also, only parse data as a query string when the command has the correct Content-Type header set.

Fixes #618 (also see #457)