add body.close check for HEAD requests