diff --git a/cf-worker/index.js b/cf-worker/index.js index 24054e7b8..adb3c30d9 100644 --- a/cf-worker/index.js +++ b/cf-worker/index.js @@ -71,7 +71,7 @@ addEventListener('fetch', event => { } } // 发起 fetch - let fr = (await fetch(url, fp)); + let fr = (await fetch(new URL(url), fp)); outCt = fr.headers.get('content-type'); if(outCt && (outCt.includes('application/text') || outCt.includes('text/html'))) { try { @@ -132,4 +132,4 @@ addEventListener('fetch', event => { let len = blocker.keys.filter(x => url.includes(x)).length; return len != 0; } - } \ No newline at end of file + }