diff --git a/changes/ce/fix-10086.en.md b/changes/ce/fix-10086.en.md new file mode 100644 index 000000000..31e8b6453 --- /dev/null +++ b/changes/ce/fix-10086.en.md @@ -0,0 +1,4 @@ +Upgrade HTTP client ehttpc to `0.4.7`. +Prior to this upgrade, HTTP clients for authentication, authorization and webhook may crash +if `body` is empty but content-type HTTP header is set. +For more details see [ehttpc PR#44](https://github.com/emqx/ehttpc/pull/44). diff --git a/changes/ce/fix-10086.zh.md b/changes/ce/fix-10086.zh.md new file mode 100644 index 000000000..b7c110ea4 --- /dev/null +++ b/changes/ce/fix-10086.zh.md @@ -0,0 +1,3 @@ +HTTP 客户端库 `ehttpc` 升级到 0.4.7。 +在升级前,如果 HTTP 客户端,例如 认证,授权,webhook 等配置中使用了content-type HTTP 头,但是没有配置 body,则可能会发生异常。 +详情见 [ehttpc PR#44](https://github.com/emqx/ehttpc/pull/44)。 diff --git a/mix.exs b/mix.exs index 6a7f9fb50..3d3657ebb 100644 --- a/mix.exs +++ b/mix.exs @@ -48,7 +48,7 @@ defmodule EMQXUmbrella.MixProject do {:redbug, "2.0.8"}, {: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.6", override: true}, + {:ehttpc, github: "emqx/ehttpc", tag: "0.4.7", override: true}, {:gproc, github: "uwiger/gproc", tag: "0.8.0", override: true}, {:jiffy, github: "emqx/jiffy", tag: "1.0.5", override: true}, {:cowboy, github: "emqx/cowboy", tag: "2.9.0", override: true}, diff --git a/rebar.config b/rebar.config index 2e478869d..89cc7923d 100644 --- a/rebar.config +++ b/rebar.config @@ -50,7 +50,7 @@ , {gpb, "4.19.5"} %% gpb only used to build, but not for release, pin it here to avoid fetching a wrong version due to rebar plugins scattered in all the deps , {typerefl, {git, "https://github.com/ieQu1/typerefl", {tag, "0.9.1"}}} , {gun, {git, "https://github.com/emqx/gun", {tag, "1.3.9"}}} - , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.4.6"}}} + , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.4.7"}}} , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}} , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}} , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}}