Make sure to close the response body

The resp Body must be closed not using a defer because the function runs continuously.