client = HTTP.persistent("https://example.com").follow
client.get(some_url)
In case some_url redirects to some domain other than example.com, we get the HTTP::StateError: Persistence is enabled for https://example.com, but we got https://some-other-domain.com.