cookie: open cookie jar as a binary file

On Windows there is a difference and for text files, ^Z means end of
file which is not desirable.

Ref: #9973
Closes #10017
This commit is contained in:
Daniel Stenberg 2022-12-02 08:30:30 +01:00
parent 3dfb6aeabb
commit 73d6f41489
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1264,7 +1264,7 @@ struct CookieInfo *Curl_cookie_init(struct Curl_easy *data,
fp = NULL;
}
else {
fp = fopen(file, FOPEN_READTEXT);
fp = fopen(file, "rb");
if(!fp)
infof(data, "WARNING: failed to open cookie file \"%s\"", file);
}