feat: don't merge authz default headers if user already setting

This commit is contained in:
zhongwencool 2023-12-15 09:45:42 +08:00
parent d5d05a1701
commit 7286f773ba
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*-
{application, emqx_auth_http, [
{description, "EMQX External HTTP API Authentication and Authorization"},
{vsn, "0.1.1"},
{vsn, "0.1.2"},
{registered, []},
{mod, {emqx_auth_http_app, []}},
{applications, [

View File

@ -113,7 +113,7 @@ headers(desc) ->
?DESC(?FUNCTION_NAME);
headers(converter) ->
fun(Headers) ->
maps:to_list(maps:merge(default_headers(), transform_header_name(Headers)))
maps:to_list(transform_header_name(Headers))
end;
headers(default) ->
default_headers();
@ -129,7 +129,7 @@ headers_no_content_type(converter) ->
maps:to_list(
maps:without(
[<<"content-type">>],
maps:merge(default_headers_no_content_type(), transform_header_name(Headers))
transform_header_name(Headers)
)
)
end;