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

on Windows!
This commit is contained in:
Daniel Stenberg 2002-03-27 22:53:06 +00:00
parent 541e5a3b82
commit 4a7def101b
1 changed files with 1 additions and 1 deletions

View 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);