Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--raw is ignored when translating xh commands using --curl #252

Closed
ducaale opened this issue May 3, 2022 · 0 comments · Fixed by #308
Closed

--raw is ignored when translating xh commands using --curl #252

ducaale opened this issue May 3, 2022 · 0 comments · Fixed by #308
Assignees

Comments

@ducaale
Copy link
Owner

ducaale commented May 3, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant