Skip to content

Host header not respected when calling upstream server #2

Description

@tjsousa

I tried to use the embedded plug strategy inside a Phoenix app and run into an issue where the client set Host header wouldn't be respected in the upstream request.

I digged into it and found this to be caused by benoitc/hackney#114, as :hackney only looks for the Host header before overriding it. Since the headers are being set from a Plug connection, they're lower-cased by default.

I tried HTTPotion as a client and the headers seem to be respected. Any thoughts on the best approach to overcome this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions