chore: typo error (templete -> template)

This commit is contained in:
zhongwencool 2024-02-20 09:41:09 +08:00
parent 2561ff94ec
commit c7bfaf51fd
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -157,7 +157,7 @@ parse_config(
method => Method, method => Method,
base_url => BaseUrl, base_url => BaseUrl,
headers => Headers, headers => Headers,
base_path_templete => emqx_authz_utils:parse_str(Path, allowed_vars()), base_path_template => emqx_authz_utils:parse_str(Path, allowed_vars()),
base_query_template => emqx_authz_utils:parse_deep( base_query_template => emqx_authz_utils:parse_deep(
cow_qs:parse_qs(to_bin(Query)), cow_qs:parse_qs(to_bin(Query)),
allowed_vars() allowed_vars()
@ -197,7 +197,7 @@ generate_request(
#{ #{
method := Method, method := Method,
headers := Headers, headers := Headers,
base_path_templete := BasePathTemplate, base_path_template := BasePathTemplate,
base_query_template := BaseQueryTemplate, base_query_template := BaseQueryTemplate,
body_template := BodyTemplate body_template := BodyTemplate
} }