1
0
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:
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; config->postfields=postdata;
} }
/* if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq)) if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
return PARAM_BAD_USE;*/ return PARAM_BAD_USE;
break; break;
case 'D': case 'D':
/* dump-header to given file name */ /* dump-header to given file name */