Verify (manually) phone index add works with cic-meta-server

This commit is contained in:
nolash
2021-04-07 15:34:45 +02:00
parent 805492ab61
commit 7fad15b66d
9 changed files with 64 additions and 16 deletions

View File

@@ -114,6 +114,7 @@ async function processRequest(req, res) {
return;
}
if (!['PUT', 'GET', 'POST'].includes(req.method)) {
res.writeHead(405, {"Content-Type": "text/plain"});
res.end();
@@ -123,6 +124,7 @@ async function processRequest(req, res) {
try {
digest = parseDigest(req.url);
} catch(e) {
console.error('digest error: ' + e)
res.writeHead(400, {"Content-Type": "text/plain"});
res.end();
return;