stream/cookies: allow reading cookies not only from a local file

This commit is contained in:
Kacper Michajłow committed 2026-05-16 18:20:42 +02:00
1 parent 779378c248
commit 893313e5af
1 file changed
+3 -1
+3 -1
View File
@@ -81,7 +81,9 @@ static struct cookie_list_type *load_cookies_from(void *ctx,
const char *filename)
{
mp_verbose(log, "Loading cookie file: %s\n", filename);
bstr data = stream_read_file(filename, ctx, global, 1000000);
bstr data = stream_read_file2(filename, ctx,
STREAM_READ_FILE_FLAGS_DEFAULT & ~STREAM_LOCAL_FS_ONLY,
global, 1000000);
if (!data.start) {
mp_verbose(log, "Error reading\n");
return NULL;