mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
Fix requiresProxy function
This commit is contained in:
parent
eab55c8368
commit
9c7bc36ab1
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import { flags } from '@/entrypoint/utils/targets';
|
|||
import { Stream } from '@/providers/streams';
|
||||
|
||||
export function requiresProxy(stream: Stream): boolean {
|
||||
if (!stream.flags.includes(flags.CORS_ALLOWED) && !!(stream.headers && Object.keys(stream.headers).length > 0))
|
||||
if (!stream.flags.includes(flags.CORS_ALLOWED) || !!(stream.headers && Object.keys(stream.headers).length > 0))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue