mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
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:
parent
8a135262db
commit
afec527f5f
@ -376,6 +376,7 @@ feature_request(Host, From, Caps, [SubNode | Tail] = SubNodes) ->
|
|||||||
end,
|
end,
|
||||||
if NeedRequest ->
|
if NeedRequest ->
|
||||||
IQ = #iq{type = 'get',
|
IQ = #iq{type = 'get',
|
||||||
|
iq_ns = ?NS_JABBER_CLIENT,
|
||||||
ns = ?NS_DISCO_INFO,
|
ns = ?NS_DISCO_INFO,
|
||||||
payload = #xmlel{ns = ?NS_DISCO_INFO,
|
payload = #xmlel{ns = ?NS_DISCO_INFO,
|
||||||
name = 'query',
|
name = 'query',
|
||||||
|
Loading…
Reference in New Issue
Block a user