mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Update ejabberd_xmlrpc to handle binaries in restuple result (#3048)
This commit is contained in:
parent
5d549dca96
commit
9df26a5740
@ -371,7 +371,7 @@ format_result(Code, {Name, rescode}) ->
|
|||||||
format_result({Code, Text}, {Name, restuple}) ->
|
format_result({Code, Text}, {Name, restuple}) ->
|
||||||
{struct,
|
{struct,
|
||||||
[{Name, make_status(Code)},
|
[{Name, make_status(Code)},
|
||||||
{text, lists:flatten(Text)}]};
|
{text, io_lib:format("~ts", [Text])}]};
|
||||||
format_result(Elements, {Name, {list, ElementsDef}}) ->
|
format_result(Elements, {Name, {list, ElementsDef}}) ->
|
||||||
FormattedList = lists:map(fun (Element) ->
|
FormattedList = lists:map(fun (Element) ->
|
||||||
format_result(Element, ElementsDef)
|
format_result(Element, ElementsDef)
|
||||||
|
Loading…
Reference in New Issue
Block a user