express-stream icon indicating copy to clipboard operation
express-stream copied to clipboard

TypeError: res.close is not a function

Open adyontech opened this issue 5 years ago • 1 comments

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.

adyontech avatar Aug 27 '20 10:08 adyontech

I think you should call res.end() instead. There are some routes in the bottom half of this demo file that might be helpful.

jpodwys avatar Sep 03 '20 15:09 jpodwys