Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade http client libs gun-1.3.11 and ehttpc-0.4.13 #12773

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions changes/ce/fix-12773.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Upgrade HTTP client libraries.

The HTTP client library (`gun-1.3`) incorrectly appends a `:portnumber` suffix to the `Host` header for
standard ports (`http` on port 80, `https` on port 443). This could cause compatibility issues with servers or
gateways performing strict `Host` header checks (e.g., AWS Lambda, Alibaba Cloud HTTP gateways), leading to
errors such as `InvalidCustomDomain.NotFound` or "The specified CustomDomain does not exist."


4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ defmodule EMQXUmbrella.MixProject do
{:redbug, github: "emqx/redbug", tag: "2.0.10"},
{:covertool, github: "zmstone/covertool", tag: "2.0.4.1", override: true},
{:typerefl, github: "ieQu1/typerefl", tag: "0.9.1", override: true},
{:ehttpc, github: "emqx/ehttpc", tag: "0.4.12", override: true},
{:ehttpc, github: "emqx/ehttpc", tag: "0.4.13", override: true},
{:gproc, github: "emqx/gproc", tag: "0.9.0.1", override: true},
{:jiffy, github: "emqx/jiffy", tag: "1.0.6", override: true},
{:cowboy, github: "emqx/cowboy", tag: "2.9.2", override: true},
Expand Down Expand Up @@ -77,7 +77,7 @@ defmodule EMQXUmbrella.MixProject do
{:esasl, github: "emqx/esasl", tag: "0.2.0"},
{:jose, github: "potatosalad/erlang-jose", tag: "1.11.2"},
# in conflict by ehttpc and emqtt
{:gun, github: "emqx/gun", tag: "1.3.10", override: true},
{:gun, github: "emqx/gun", tag: "1.3.11", override: true},
# in conflict by emqx_connector and system_monitor
{:epgsql, github: "emqx/epgsql", tag: "4.7.1.1", override: true},
# in conflict by emqx and observer_cli
Expand Down
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
{covertool, {git, "https://github.com/zmstone/covertool", {tag, "2.0.4.1"}}},
{gpb, "4.19.9"},
{typerefl, {git, "https://github.com/ieQu1/typerefl", {tag, "0.9.1"}}},
{gun, {git, "https://github.com/emqx/gun", {tag, "1.3.10"}}},
{ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.4.12"}}},
{gun, {git, "https://github.com/emqx/gun", {tag, "1.3.11"}}},
{ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.4.13"}}},
{gproc, {git, "https://github.com/emqx/gproc", {tag, "0.9.0.1"}}},
{jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.6"}}},
{cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.2"}}},
Expand Down