diff --git a/index.js b/index.js index f28106e..ef8f308 100644 --- a/index.js +++ b/index.js @@ -129,7 +129,7 @@ function httpHandler(req, pathname) { if (!flag) { return new Response("blocked", {status: 403}) } - if (urlStr.startsWith('github')) { + if (urlStr.startsWith('github') || urlStr.startsWith('raw.github') || urlStr.startsWith('gist.github')) { urlStr = 'https://' + urlStr } const urlObj = newUrl(urlStr)