Skip to content

Redirections to other domains break persistent client #557

@tycooon

Description

@tycooon
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions