You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 25c3570
Browse filesBrowse the repository at this point in the historyBrowse files
Before, the resultant shell command was completely unquoted. This change
introduces proper quoting of values and the URL - when necessary.
It uses single quotes which provide "strong quoting" (only nested single quote
characters need to be taken care of) and also make the output more
readable as double quotes, ubiquitous in JSON, don't require escaping.
Before:
echo "{\"foo\": \"bar\"}" | \
http POST http://mockbin.com/request?foo=bar&foo=baz \
accept:application/json \
content-type:application/json \
cookie:foo=bar; bar=baz
After:
echo '{"foo": "bar"}' | \
http POST 'http://mockbin.com/request?foo=bar&foo=baz' \
accept:application/json \
content-type:application/json \
cookie:'foo=bar; bar=baz'
0 commit comments