mod_statsdx: Fix type issue when parsing xml:lang

This commit is contained in:
Holger Weiss 2015-02-17 22:46:38 +01:00
parent 185fd7bb92
commit 7e9acda1c7
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ received_response(From, {xmlel, <<"iq">>, Attrs, Elc}) ->
<<"result">> = xml:get_attr_s(<<"type">>, Attrs),
Lang = case xml:get_attr_s(<<"xml:lang">>, Attrs) of
[] -> "unknown";
<<"">> -> "unknown";
L -> binary_to_list(L)
end,
TableHost = table_name(Host),