All api end-points now return text values with HTTP header content-type 'text/plain'
This commit is contained in:
+2
-1
@@ -49,7 +49,8 @@ module.exports = function(){
|
||||
res.json(response);
|
||||
}
|
||||
else{
|
||||
res.send(""+response);
|
||||
res.setHeader('content-type', 'text/plain');
|
||||
res.end(response.toString());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user