mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58: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:
parent
7cdd6455d7
commit
6a62fc4a40
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user