fix: lookup topic without force percent decode
* the minirest handler would do it
This commit is contained in:
parent
2de2a979f5
commit
e38645aa28
|
@ -139,9 +139,9 @@ lookup(#{topic := Topic}) ->
|
|||
%%%==============================================================================================
|
||||
%% internal
|
||||
generate_topic(Params = #{<<"topic">> := Topic}) ->
|
||||
Params#{<<"topic">> => uri_string:percent_decode(Topic)};
|
||||
Params#{<<"topic">> => Topic};
|
||||
generate_topic(Params = #{topic := Topic}) ->
|
||||
Params#{topic => uri_string:percent_decode(Topic)};
|
||||
Params#{topic => Topic};
|
||||
generate_topic(Params) ->
|
||||
Params.
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Avoid duplicated percent decode the topic name in API `/topics/{topic}` and `/topics`.
|
Loading…
Reference in New Issue