mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-01-11 20:10:35 +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 {
|
||||
// Use native fetch instead of axios
|
||||
const response = await fetch(url, {
|
||||
headers: headers as HeadersInit
|
||||
const response = await globalThis.fetch(url, {
|
||||
headers: headers as HeadersInit
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default defineEventHandler(async (event) => {
|
|||
}
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
const response = await globalThis.fetch(url, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
...headers as HeadersInit,
|
||||
|
|
|
|||
Loading…
Reference in a new issue