Commit 24631042 authored by Philipp Hörist's avatar Philipp Hörist

Dispatch stream header

parent 9ad2e79d
Pipeline #2045 passed with stages
in 26 seconds
......@@ -441,7 +441,7 @@ class XMPPDispatcher(PlugIn):
xmlns = 'unknown'
# features stanza has been handled before
if name not in self.handlers[xmlns]:
if name != 'features':
if name not in ('features', 'stream'):
log.warning('Unknown stanza: %s', stanza)
else:
log.debug('Got %s/%s stanza' % (xmlns, name))
......
......@@ -634,6 +634,9 @@ class NodeBuilder(object):
self._document_attrs[attr] = val
ns = self._document_nsp.get(nsp, 'http://www.gajim.org/xmlns/undeclared-root')
try:
header = Node(tag=tag, attrs=attrs,
nsp=self._document_nsp, node_built=True)
self.dispatch(header)
self.stream_header_received(ns, name, attrs)
except ValueError as e:
self._document_attrs = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment