curl-generator icon indicating copy to clipboard operation
curl-generator copied to clipboard

Use single quotes around URL

Open paulRbr opened this issue 1 year ago • 1 comments

This change adds single quotes around the URL of the curl command.

It makes sure to make curl commands with a URL that contains multiple query param work well in *nix terminals.

e.g. curl http://example.com?query=one&query=two the terminal will interpret the & character as a “send to background” command. See this SO thread for details

paulRbr avatar Dec 11 '24 16:12 paulRbr

Hello, thanks for your contribution, may I ask you to check this, tests would need to be updated (I just added a workflow to run them on PRs so it's easier to see the issue)

albertodeago avatar Jan 08 '25 09:01 albertodeago