]> granicus.if.org Git - curl/commitdiff
make sure -d is treated as a POST request and thus should fail if mixed
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 09:08:28 +0000 (09:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 09:08:28 +0000 (09:08 +0000)
with -I for example

src/main.c

index b6a8115544c5d6ebfb4b25b184565e5e29a5ef1e..3cfd4a9b5e0176b438ad749d3db3a751cedf92f2 100644 (file)
@@ -1176,8 +1176,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
           config->postfields=postdata;
       }
 
-/*      if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
-        return PARAM_BAD_USE;*/
+      if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
+        return PARAM_BAD_USE;
       break;
     case 'D':
       /* dump-header to given file name */