xh icon indicating copy to clipboard operation
xh copied to clipboard

`--raw` is ignored when translating xh commands using `--curl`

Open ducaale opened this issue 3 years ago • 0 comments

Expected

$ xh httpbin.org/post --raw=hello --curl
# Not sure if content-type should be set if body is invalid JSON
curl http://httpbin.org/post -H 'content-type: application/json' -H 'accept: application/json, */*;q=0.5' -d 'hello'

Actual

$ xh httpbin.org/post --raw=hello --curl
curl http://httpbin.org/post

ducaale avatar May 03 '22 17:05 ducaale