Просмотр исходного кода

Merge pull request #12773 from zmstone/0323-upgrade-http-clients

chore: upgrade http client libs gun-1.3.11 and ehttpc-0.4.13
Zaiming (Stone) Shi 1 год назад
Родитель
Сommit
c8cb03f0d9
3 измененных файлов с 12 добавлено и 4 удалено
  1. 8 0
      changes/ce/fix-12773.en.md
  2. 2 2
      mix.exs
  3. 2 2
      rebar.config

+ 8 - 0
changes/ce/fix-12773.en.md

@@ -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."
+
+

+ 2 - 2
mix.exs

@@ -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},
@@ -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

+ 2 - 2
rebar.config

@@ -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"}}},