]> granicus.if.org Git - ejabberd/commitdiff
Improve stream error stanza when receives invalid handshake from component.
authorBadlop <badlop@process-one.net>
Tue, 6 Oct 2009 10:04:26 +0000 (10:04 +0000)
committerBadlop <badlop@process-one.net>
Tue, 6 Oct 2009 10:04:26 +0000 (10:04 +0000)
SVN Revision: 2640

src/ejabberd_service.erl

index 42c6594531b1efe8a827c7c89d631483d7c7b475..34d62f43311a41807e69fa75f8d474740de6ee8c 100644 (file)
        ).
 
 -define(INVALID_HANDSHAKE_ERR,
-       "<stream:error>Invalid Handshake</stream:error>"
+       "<stream:error>"
+       "<not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>"
+       "<text xmlns='urn:ietf:params:xml:ns:xmpp-streams' xml:lang='en'>"
+       "Invalid Handshake</text>"
+       "</stream:error>"
        "</stream:stream>"
        ).