fix(emqx_authn_jwks): add a user-agent header to jwks HTTP request
This commit is contained in:
parent
a2a598469e
commit
a13c961744
|
@ -1,7 +1,7 @@
|
|||
%% -*- mode: erlang -*-
|
||||
{application, emqx_auth_jwt, [
|
||||
{description, "EMQX JWT Authentication and Authorization"},
|
||||
{vsn, "0.2.0"},
|
||||
{vsn, "0.2.1"},
|
||||
{registered, []},
|
||||
{mod, {emqx_auth_jwt_app, []}},
|
||||
{applications, [
|
||||
|
|
|
@ -159,7 +159,10 @@ refresh_jwks(
|
|||
case
|
||||
httpc:request(
|
||||
get,
|
||||
{Endpoint, [{"Accept", "application/json"}]},
|
||||
{Endpoint, [
|
||||
{"Accept", "application/json"},
|
||||
{"User-Agent", "EMQX/" ++ emqx_release:version_with_prefix()}
|
||||
]},
|
||||
HTTPOpts,
|
||||
[{body_format, binary}, {sync, false}, {receiver, self()}]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue