mirror of https://github.com/moparisthebest/curl
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))
|
if(strequal("-", nextarg))
|
||||||
file = stdin;
|
file = stdin;
|
||||||
else
|
else
|
||||||
file = fopen(nextarg, "r");
|
file = fopen(nextarg, "rb");
|
||||||
|
|
||||||
if(subletter == 'b') /* forced binary */
|
if(subletter == 'b') /* forced binary */
|
||||||
postdata = file2memory(file, &config->postfieldsize);
|
postdata = file2memory(file, &config->postfieldsize);
|
||||||
|
|
Loading…
Reference in New Issue