Close resp.Body inside http_output

This fixes #1158 by explicitly closing the connection after shipping the HTTP output.
Probably should go after line line 134. Otherwise if there's an error it won't be closed.