Fix accumulation of open connections

The http response should be read and the response handle should
be closed to facilitize connection reuse.
Merge pull request #1 from t3rm1n4l/master

Fix accumulation of open connections