Przeglądaj źródła

chore: typo error (templete -> template)

zhongwencool 2 lat temu
rodzic
commit
c7bfaf51fd

+ 1 - 1
apps/emqx_auth_http/src/emqx_auth_http.app.src

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

+ 2 - 2
apps/emqx_auth_http/src/emqx_authz_http.erl

@@ -157,7 +157,7 @@ parse_config(
         method => Method,
         base_url => BaseUrl,
         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(
             cow_qs:parse_qs(to_bin(Query)),
             allowed_vars()
@@ -197,7 +197,7 @@ generate_request(
     #{
         method := Method,
         headers := Headers,
-        base_path_templete := BasePathTemplate,
+        base_path_template := BasePathTemplate,
         base_query_template := BaseQueryTemplate,
         body_template := BodyTemplate
     }