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

prevent duplicate output for -I | --head #3

Merged
merged 1 commit into from
Sep 6, 2018
Merged

prevent duplicate output for -I | --head #3

merged 1 commit into from
Sep 6, 2018

Conversation

jakewarren
Copy link
Contributor

A compromise solution for #2 - if the user is running -I | --head at the terminal, stdout is discarded to prevent the duplicate output; however if the user is piping or redirecting the output, stdout is preserved to maintain compatibility.

I looked into rewriting -I into -X HEAD but curl behaves differently by waiting for content to be sent. More info I couldn't figure out a good workaround..

@rs rs merged commit b31350e into rs:master Sep 6, 2018
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 this pull request may close these issues.

None yet

2 participants