fopen(... "rb") when reading what to post, so that binary posting works
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Mar 2002 22:53:06 +0000 (22:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Mar 2002 22:53:06 +0000 (22:53 +0000)
on Windows!

src/main.c

index 5ede3fac0b503d461956c313fd75e3a6c9bb4bf2..a7c516be8948080d434280fdb796f7b5779bfd3b 100644 (file)
@@ -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);