mirror of
https://github.com/curl/curl.git
synced 2026-05-15 17:56:20 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue