Join GitHub today
Remove custom output parsing and buffer payload chunks via write() #79
This is an attempt to cleanup the way shot dips into the Node HTTP internals and to avoid the custom HTTP parsing we have in place.
I've tested with current hapi master on node 4.x.x and node 6.x.x and all tests pass.
It should make #78 easier to implement too.
This PR removes some of the games mentioned there by removing all the protocol parsing stuff and buffering the payload directly in shot rather than reaching into the output stream. It feels like an improvement and relatively low-risk to me.