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:
parent
541e5a3b82
commit
4a7def101b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user