Merge pull request #10610 from rabbitmq/http-api-empty-sort-fix

Use default sorting when `?sort=` in MGMT API
This commit is contained in:
Michael Klishin 2024-02-26 11:44:07 -05:00 committed by GitHub
commit 97134d3a89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -276,6 +276,8 @@ get_sorts_param(ReqData, Def) ->
case get_value_param(<<"sort">>, ReqData) of
undefined ->
Def;
[] ->
Def;
S ->
[S]
end.