aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-25 09:08:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-25 09:08:28 +0000
commit6a62fc4a40ab2e2dd26768dfa297ccb5299e50c3 (patch)
tree6272dbe7dafa8a19544c1312c4c29b7199a5f683 /src
parent7cdd6455d7b619d81840c3b6f30390162e477de3 (diff)
make sure -d is treated as a POST request and thus should fail if mixed
with -I for example
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files 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 */