This commit is contained in:
decolua committed 2026-02-23 21:56:40 +07:00
1 parent d21f7aaadc
commit 8221f7c027
7 files changed
+165 -213

No files matched your search

+7
View File
@@ -173,6 +173,13 @@ async function intercept(req, res, bodyBuffer, mappedModel) {
}
const server = https.createServer(sslOptions, async (req, res) => {
// Health check endpoint for startup verification
if (req.url === "/_mitm_health") {
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify({ ok: true, pid: process.pid }));
return;
}
const bodyBuffer = await collectBodyRaw(req);
// Save request log if enabled