This PR introduces most of the res.send tests from Restana to check the low-http-server's res.end for viability. Introducing these tests uncovered certain problems:
HTTP requests would hang, if res.body was not a string, TypedArray or Buffer
These issues were also solved in this PR with improved input validation.
This PR introduces most of the
res.send
tests from Restana to check the low-http-server'sres.end
for viability. Introducing these tests uncovered certain problems:res.body
was not a string, TypedArray or BufferThese issues were also solved in this PR with improved input validation.