]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_getparam: make --no-get work as the opposite of --get
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Nov 2022 14:37:36 +0000 (15:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Nov 2022 23:13:29 +0000 (00:13 +0100)
... as documented.

Closes #9891

src/tool_getparam.c

index 7a9d597a4cc1428f8df46981cb0a5d0506dc7b09..ea5a21ae5c09ef7b437b8e9fa867e8e96103112c 100644 (file)
@@ -1999,7 +1999,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
         GetStr(&config->request_target, nextarg);
       }
       else
-        config->use_httpget = TRUE;
+        config->use_httpget = toggle;
       break;
 
     case 'h': /* h for help */