fix(authz_http): fix content-type header in http request
This commit is contained in:
parent
c8d1cce6a5
commit
1129c18330
|
@ -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, [
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue