1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

make sure -d is treated as a POST request and thus should fail if mixed

with -I for example
This commit is contained in:
Daniel Stenberg 2002-02-25 09:08:28 +00:00
parent 7cdd6455d7
commit 6a62fc4a40

View 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 */