Commit 4a7def10 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fopen(... "rb") when reading what to post, so that binary posting works

on Windows!
parent 541e5a3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);