Use status 200

This commit is contained in:
WardPearce
2025-06-04 00:16:04 +12:00
parent 2ef91756fd
commit c9f5cc605b
+2 -2
View File
@@ -136,11 +136,11 @@ const server = http.createServer((req, res) => {
// Quick way to quickly send commands between app and nodejs backend.
if (targetUrl === 'http://materialious__allow-insecure-requests') {
rejectUnauthorized = false;
res.writeHead(204);
res.writeHead(200);
return res.end();
} else if (targetUrl === 'http://materialious__deny-insecure-requests') {
rejectUnauthorized = true;
res.writeHead(204);
res.writeHead(200);
return res.end();
}