Use end to send the response and end it
Merge branch 'endstream'