Skip to content

Conversation

aiotter
Copy link

@aiotter aiotter commented Jul 31, 2025

Plug's conn.host is not equal to Host HTTP header.

According to MDN, Host header contains the host and port number of the server to which the request is being sent.
On the other side, conn.host contains only the host.

Even though you enable preserve_host_header option, the Host header is not preserved currently.
The port number is omitted.

This PR is to fix the problem and preserve original Host header intact.

@aiotter
Copy link
Author

aiotter commented Aug 7, 2025

I don't know why CI is failing. mix test went without error on my laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant