Skip to content

HTTPClient redirection with different host does not replace the host #4646

Closed
@thegreatdane6

Description

@thegreatdane6

After enabling the HTTPClient redirection, i kept running into a 404 Status Code. So I did some investigation and noticed that the host does not get changed if the host in the location header is different than the previous one.
I assume the issue must be somewhere within the "beginInternal" since i cannot see any changes related to this in #4240.
For everyone that cannot wait for a fix, I implemented a workaround for myself which you can check out here

"https://github.com/MaibornWolff/clean-air/releases/download/LATEST"
with response location
"Location: https://github.com/MaibornWolff/clean-air/releases/download/v1.1.0/LATEST"
leads to requesting
"https://github.com/MaibornWolff/clean-air/releases/download/v1.1.0/LATEST"

but
"https://github.com/MaibornWolff/clean-air/releases/download/v1.1.0/LATEST"
with response location
"Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/more/stuff?&soon"
leads to requesting
"https://github.com/more/stuff?&soon"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions