lib/vines/stream/server/outbound/auth.rb in vines-0.4.2 vs lib/vines/stream/server/outbound/auth.rb in vines-0.4.3

- old
+ new

@@ -11,11 +11,11 @@ super end def node(node) raise StreamErrors::NotAuthorized unless external?(node) - authz = Base64.encode64(stream.domain).chomp - stream.write(%Q{<auth xmlns="#{NS}" mechanism="EXTERNAL">#{authz}</auth>}) + authzid = Base64.strict_encode64(stream.domain) + stream.write(%Q{<auth xmlns="#{NS}" mechanism="EXTERNAL">#{authzid}</auth>}) advance end private