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 -*-
|
||||
{application, emqx_authz, [
|
||||
{description, "An OTP application"},
|
||||
{vsn, "0.1.25"},
|
||||
{vsn, "0.1.26"},
|
||||
{registered, []},
|
||||
{mod, {emqx_authz_app, []}},
|
||||
{applications, [
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue