fix: don't urldecode twice clientid
This commit is contained in:
parent
d72348c8ed
commit
640dd130fa
|
@ -2,7 +2,7 @@
|
|||
{application, emqx_management, [
|
||||
{description, "EMQX Management API and CLI"},
|
||||
% strict semver, bump manually!
|
||||
{vsn, "5.0.29"},
|
||||
{vsn, "5.0.30"},
|
||||
{modules, []},
|
||||
{registered, [emqx_management_sup]},
|
||||
{applications, [kernel, stdlib, emqx_plugins, minirest, emqx, emqx_ctl, emqx_bridge_http]},
|
||||
|
|
|
@ -647,7 +647,7 @@ set_keepalive(put, #{bindings := #{clientid := ClientID}, body := Body}) ->
|
|||
error ->
|
||||
{400, 'BAD_REQUEST', "Interval Not Found"};
|
||||
{ok, Interval} ->
|
||||
case emqx_mgmt:set_keepalive(emqx_mgmt_util:urldecode(ClientID), Interval) of
|
||||
case emqx_mgmt:set_keepalive(ClientID, Interval) of
|
||||
ok -> lookup(#{clientid => ClientID});
|
||||
{error, not_found} -> {404, ?CLIENTID_NOT_FOUND};
|
||||
{error, Reason} -> {400, #{code => 'PARAMS_ERROR', message => Reason}}
|
||||
|
|
Loading…
Reference in New Issue