express-stream
express-stream copied to clipboard
TypeError: res.close is not a function
hey,
I am getting this error TypeError: res.close is not a function.
There is nothing much in code actually.
home: async function (req, res) {
res.stream("head");
res.close();
},
Please help.
I think you should call res.end() instead.
There are some routes in the bottom half of this demo file that might be helpful.