bug: False 404 in cic-meta logging

This commit is contained in:
Louis Holbrook 2021-11-02 17:45:09 +00:00
parent 1abb642361
commit 09dfdbb38a
1 changed files with 2 additions and 1 deletions

View File

@ -193,6 +193,7 @@ async function processRequest(req, res) {
res.end(); res.end();
return; return;
} }
content = '';
break; break;
case 'get:automerge:client': case 'get:automerge:client':
@ -251,7 +252,7 @@ async function processRequest(req, res) {
} }
if (content === undefined) { if (content === undefined) {
console.error('empty content', data); console.error('empty content', mod, digest, data);
res.writeHead(404, {"Content-Type": "text/plain"}); res.writeHead(404, {"Content-Type": "text/plain"});
res.end(); res.end();
return; return;