1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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