mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(cf-worker): use utf-8 encoding when extracting
This commit is contained in:
@@ -116,7 +116,9 @@ export default {
|
||||
return createResponse('Encrypted Config Not Supported', 400);
|
||||
}
|
||||
try {
|
||||
decodedConfig = unminifyConfig(JSON.parse(atob(config)));
|
||||
decodedConfig = unminifyConfig(
|
||||
JSON.parse(Buffer.from(config, 'base64').toString('utf-8'))
|
||||
);
|
||||
} catch (error: any) {
|
||||
console.error(error);
|
||||
return createJsonResponse(
|
||||
|
||||
Reference in New Issue
Block a user