node-run-middleware icon indicating copy to clipboard operation
node-run-middleware copied to clipboard

.end() Doesn't work

Open kaansoral opened this issue 4 years ago • 1 comments

If you do something like res.status(200).set('Content-Type', 'text/plain').send('Done!').end(); it doesn't work as .send() doesn't return anything inside the middleware

I guess it doesn't matter too much since I assume calling .end() isn't needed

kaansoral avatar Jan 16 '21 13:01 kaansoral

If you wish the create a fix, I will review and merge it.

Aminadav avatar Mar 13 '21 23:03 Aminadav