curl: improve error message for --head with -J

... 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
Closes #8045
This commit is contained in:
Daniel Stenberg 2021-11-22 18:09:43 +01:00
parent b011656804
commit ffb6a9e8a6
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -69,7 +69,7 @@ const char *param2text(int res)
case PARAM_NO_NOT_BOOLEAN:
return "used '--no-' for option that isn't a boolean";
case PARAM_CONTDISP_SHOW_HEADER:
return "--include and --remote-header-name cannot be combined";
return "showing headers and --remote-header-name cannot be combined";
case PARAM_CONTDISP_RESUME_FROM:
return "--continue-at and --remote-header-name cannot be combined";
default: