aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-03-27 22:53:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-03-27 22:53:06 +0000
commit4a7def101ba4d4b638c5ab23b5fea58b57a27a57 (patch)
treef3e48b0cbe1f9cd9c15b16cdc80666f7ccfbad29 /src
parent541e5a3b827e6bbd236831fec7e7089664ea5b1c (diff)
fopen(... "rb") when reading what to post, so that binary posting works
on Windows!
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
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);