Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-05-10 15:56:58 +0400
committerBadlop <badlop@process-one.net>2010-05-10 15:56:58 +0400
commit110819525f52b09d16a58b6b81ac3e0163df763f (patch)
treea541cc6547284fd7d45ad5641f4ae36ddffdeaa6 /src/ejabberd_c2s.erl
parent3f6579ffbcc76f05e53d8b1eb76fcaebb0a7a2f2 (diff)
Partially revert "Fix more HTTP-Bind", add proper fix: c2s works again, BOSH not yet
Diffstat (limited to 'src/ejabberd_c2s.erl')
-rw-r--r--src/ejabberd_c2s.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl
index 1bb7dd950..195492268 100644
--- a/src/ejabberd_c2s.erl
+++ b/src/ejabberd_c2s.erl
@@ -265,8 +265,8 @@ wait_for_stream({xmlstreamstart, #xmlel{ns = NS} = Opening}, StateData) ->
end,
Header = exmpp_stream:opening_reply(Opening,
StateData#state.streamid, DefaultLang),
- case exmpp_xml:get_attribute_as_binary(Opening, 'xmlns:stream', undefined_stream_namespace) of
- ?NS_XMPP_b ->
+ case NS of
+ ?NS_XMPP ->
ServerB = exmpp_stringprep:nameprep(
exmpp_stream:get_receiving_entity(Opening)),
Server = binary_to_list(ServerB),