|
|
@ -129,7 +129,7 @@ function httpHandler(req, pathname) {
|
|
|
|
if (!flag) {
|
|
|
|
if (!flag) {
|
|
|
|
return new Response("blocked", {status: 403})
|
|
|
|
return new Response("blocked", {status: 403})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (urlStr.startsWith('github')) {
|
|
|
|
if (urlStr.search(/^https?:\/\//) !== 0) {
|
|
|
|
urlStr = 'https://' + urlStr
|
|
|
|
urlStr = 'https://' + urlStr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const urlObj = newUrl(urlStr)
|
|
|
|
const urlObj = newUrl(urlStr)
|
|
|
|