Fix leaky file descriptor bug on http_output.go