Include client namespace in CAPs queries (EJAB-1411)

When constructing an IQ record, if no namespace is specified
for the IQ,  exmpp treat that literally as "no namespace" and
so put xmlns="" (it do not interpret it as "no change" and let
the parent namespace apply).
So it is neccesarly to especify the jabber:client namespace.

See EXMPP-53.
This commit is contained in:
Pablo Polvorin 2011-03-09 16:23:12 -03:00
parent 8a135262db
commit afec527f5f
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ feature_request(Host, From, Caps, [SubNode | Tail] = SubNodes) ->
end,
if NeedRequest ->
IQ = #iq{type = 'get',
iq_ns = ?NS_JABBER_CLIENT,
ns = ?NS_DISCO_INFO,
payload = #xmlel{ns = ?NS_DISCO_INFO,
name = 'query',