diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-03-27 22:53:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-03-27 22:53:06 +0000 |
commit | 4a7def101ba4d4b638c5ab23b5fea58b57a27a57 (patch) | |
tree | f3e48b0cbe1f9cd9c15b16cdc80666f7ccfbad29 | |
parent | 541e5a3b827e6bbd236831fec7e7089664ea5b1c (diff) |
fopen(... "rb") when reading what to post, so that binary posting works
on Windows!
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 5ede3fac0..a7c516be8 100644 --- a/src/main.c +++ b/src/main.c @@ -1225,7 +1225,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ if(strequal("-", nextarg)) file = stdin; else - file = fopen(nextarg, "r"); + file = fopen(nextarg, "rb"); if(subletter == 'b') /* forced binary */ postdata = file2memory(file, &config->postfieldsize); |