mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: set fetch redirect option to manual in getStream function
This commit is contained in:
1
dist/dooflix/stream.js
vendored
1
dist/dooflix/stream.js
vendored
@@ -15,6 +15,7 @@ const getStream = function (_a) {
|
|||||||
try {
|
try {
|
||||||
const streams = [];
|
const streams = [];
|
||||||
const response = yield fetch(link, {
|
const response = yield fetch(link, {
|
||||||
|
redirect: "manual",
|
||||||
headers: {
|
headers: {
|
||||||
Connection: "Keep-Alive",
|
Connection: "Keep-Alive",
|
||||||
"User-Agent": "Mozilla/5.0 (WindowsNT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.37",
|
"User-Agent": "Mozilla/5.0 (WindowsNT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.37",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export const getStream = async function ({
|
|||||||
try {
|
try {
|
||||||
const streams: Stream[] = [];
|
const streams: Stream[] = [];
|
||||||
const response = await fetch(link, {
|
const response = await fetch(link, {
|
||||||
|
redirect: "manual",
|
||||||
headers: {
|
headers: {
|
||||||
Connection: "Keep-Alive",
|
Connection: "Keep-Alive",
|
||||||
"User-Agent":
|
"User-Agent":
|
||||||
|
|||||||
Reference in New Issue
Block a user