mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-03-11 17:55:39 +00:00
really...
This commit is contained in:
parent
173e069628
commit
2d067ddbec
2 changed files with 3 additions and 3 deletions
|
|
@ -68,8 +68,8 @@ async function proxyM3U8(event: any) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Use native fetch instead of axios
|
// Use native fetch instead of axios
|
||||||
const response = await fetch(url, {
|
const response = await globalThis.fetch(url, {
|
||||||
headers: headers as HeadersInit
|
headers: headers as HeadersInit
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ export default defineEventHandler(async (event) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url, {
|
const response = await globalThis.fetch(url, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
...headers as HeadersInit,
|
...headers as HeadersInit,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue