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

Errormessage when combining --head and --remote-header-name wrong #7987

Closed
nimaje opened this issue Nov 10, 2021 · 0 comments
Closed

Errormessage when combining --head and --remote-header-name wrong #7987

nimaje opened this issue Nov 10, 2021 · 0 comments

Comments

@nimaje
Copy link
Contributor

nimaje commented Nov 10, 2021

I did this

curl --head --remote-header-name https://example.com

I got the following

curl: --include and --remote-header-name cannot be combined

I expected the following

curl: --head and --remote-header-name cannot be combined

curl/libcurl version

curl 7.79.0
curl 7.79.1

operating system

FreeBSD 12.2-RELEASE

bagder added a commit that referenced this issue Nov 22, 2021
... it now focuses on the "output of headers" combined with the
--remote-header-name option, as that is actually the problem. Both
--head and --include can output headers.

Reported-by: nimaje on github
Fixes #7987
@bagder bagder closed this as completed in ffb6a9e Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants