mirror of
https://github.com/curl/curl.git
synced 2026-07-30 10:18:03 +03:00
fopen(... "rb") when reading what to post, so that binary posting works
on Windows!
This commit is contained in:
parent
541e5a3b82
commit
4a7def101b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue