fix(authz_http): fix content-type header in http request

This commit is contained in:
Ivan Dyachkov 2024-05-30 11:36:13 +02:00
parent c8d1cce6a5
commit 1129c18330
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{application, emqx_authz, [ {application, emqx_authz, [
{description, "An OTP application"}, {description, "An OTP application"},
{vsn, "0.1.25"}, {vsn, "0.1.26"},
{registered, []}, {registered, []},
{mod, {emqx_authz_app, []}}, {mod, {emqx_authz_app, []}},
{applications, [ {applications, [

View File

@ -200,7 +200,7 @@ generate_request(
_ -> _ ->
NPath = append_query(Path, Query), NPath = append_query(Path, Query),
NBody = serialize_body( NBody = serialize_body(
proplists:get_value(<<"accept">>, Headers, <<"application/json">>), proplists:get_value(<<"Content-Type">>, Headers, <<"application/json">>),
Body Body
), ),
{NPath, Headers, NBody} {NPath, Headers, NBody}