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:
parent
3dfb6aeabb
commit
73d6f41489
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user