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): ...@@ -441,7 +441,7 @@ class XMPPDispatcher(PlugIn):
xmlns = 'unknown' xmlns = 'unknown'
# features stanza has been handled before # features stanza has been handled before
if name not in self.handlers[xmlns]: if name not in self.handlers[xmlns]:
if name != 'features': if name not in ('features', 'stream'):
log.warning('Unknown stanza: %s', stanza) log.warning('Unknown stanza: %s', stanza)
else: else:
log.debug('Got %s/%s stanza' % (xmlns, name)) log.debug('Got %s/%s stanza' % (xmlns, name))
......
...@@ -634,6 +634,9 @@ class NodeBuilder(object): ...@@ -634,6 +634,9 @@ class NodeBuilder(object):
self._document_attrs[attr] = val self._document_attrs[attr] = val
ns = self._document_nsp.get(nsp, 'http://www.gajim.org/xmlns/undeclared-root') ns = self._document_nsp.get(nsp, 'http://www.gajim.org/xmlns/undeclared-root')
try: try:
header = Node(tag=tag, attrs=attrs,
nsp=self._document_nsp, node_built=True)
self.dispatch(header)
self.stream_header_received(ns, name, attrs) self.stream_header_received(ns, name, attrs)
except ValueError as e: except ValueError as e:
self._document_attrs = None 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