All api end-points now return text values with HTTP header content-type 'text/plain'

This commit is contained in:
joeuhren
2020-05-22 12:01:02 -06:00
parent d4a1b9cb16
commit 035141c389
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ module.exports = function(){
res.json(response);
}
else{
res.send(""+response);
res.setHeader('content-type', 'text/plain');
res.end(response.toString());
}
}
});