]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl: improve error message for --head with -J
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 Nov 2021 17:09:43 +0000 (18:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 Nov 2021 07:43:44 +0000 (08:43 +0100)
... 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

src/tool_helpers.c

index 04b0510be8dc8cceb736d9716a220c58437570d2..9244d1fb5a9ee09abd308e598861375a5e869db2 100644 (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: