mirror of
https://github.com/denuitt1/mhr-cfw.git
synced 2026-05-17 21:24:36 +03:00
minor fixes
This commit is contained in:
@@ -13,7 +13,7 @@ export default {
|
||||
return json({ e: "loop detected" }, 508);
|
||||
}
|
||||
|
||||
if (request.method == "GET") {
|
||||
if (request.method === "GET") {
|
||||
return json({ e: "Relay is Active." }, 200);
|
||||
}
|
||||
|
||||
@@ -64,8 +64,7 @@ export default {
|
||||
};
|
||||
|
||||
if (req.b) {
|
||||
const binary = Uint8Array.from(atob(req.b), c => c.charCodeAt(0));
|
||||
fetchOptions.body = binary;
|
||||
fetchOptions.body = Uint8Array.from(atob(req.b), c => c.charCodeAt(0));
|
||||
}
|
||||
|
||||
const resp = await fetch(targetUrl.toString(), fetchOptions);
|
||||
|
||||
Reference in New Issue
Block a user