aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-03-18 22:21:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-03-18 22:21:16 +0000
commit33b06f56f01f99050c85731b96bccf14ed1a765b (patch)
treedefcdb3bc8e8d0218a4262c55bed0096675cbd85 /src
parent61a84abe2abe35d01eeb399596df23f266e43f8a (diff)
reverted 1.109, we can't set the request type when -d is used, as -G can be
used and it makes it a GET...
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ba456437a..3ed17c57b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1249,9 +1249,13 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
else
config->postfields=postdata;
}
+ /*
+ We can't set the request type here, as this data might be used in
+ a simple GET if -G is used. Already or soon.
- 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 */