diff options
Diffstat (limited to 'Swiften/Serializer')
-rw-r--r-- | Swiften/Serializer/StreamErrorSerializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Serializer/StreamErrorSerializer.cpp b/Swiften/Serializer/StreamErrorSerializer.cpp index 720c414..14dd13f 100644 --- a/Swiften/Serializer/StreamErrorSerializer.cpp +++ b/Swiften/Serializer/StreamErrorSerializer.cpp @@ -46,10 +46,10 @@ String StreamErrorSerializer::serialize(boost::shared_ptr<Element> element) con case StreamError::UnsupportedVersion: typeTag = "unsupported-version"; break; case StreamError::XMLNotWellFormed: typeTag = "xml-not-well-formed"; break; } - errorElement.addNode(boost::make_shared<XMLElement>(typeTag, "")); + errorElement.addNode(boost::make_shared<XMLElement>(typeTag, "urn:ietf:params:xml:ns:xmpp-streams")); if (!error->getText().isEmpty()) { - errorElement.addNode(boost::make_shared<XMLElement>("text", "", error->getText())); + errorElement.addNode(boost::make_shared<XMLElement>("text", "urn:ietf:params:xml:ns:xmpp-streams", error->getText())); } return errorElement.serialize(); |