From 6a62fc4a40ab2e2dd26768dfa297ccb5299e50c3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 Feb 2002 09:08:28 +0000 Subject: [PATCH] make sure -d is treated as a POST request and thus should fail if mixed with -I for example --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index b6a811554..3cfd4a9b5 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */