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 -*-
{application, emqx_authz, [
{description, "An OTP application"},
{vsn, "0.1.25"},
{vsn, "0.1.26"},
{registered, []},
{mod, {emqx_authz_app, []}},
{applications, [

View File

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