mod_bosh: I == fail.
authorMatthew Wild <mwild1@gmail.com>
Fri, 22 Jan 2010 03:36:03 +0000 (03:36 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 22 Jan 2010 03:36:03 +0000 (03:36 +0000)
plugins/mod_bosh.lua

index e366b01962b9b616a411e305d6e0487cd14d4cef..f25e7670779fe49dbff45cb7d9c3d36fcb2102d5 100644 (file)
@@ -31,9 +31,8 @@ local BOSH_DEFAULT_POLLING = tonumber(module:get_option("bosh_max_polling")) or
 local BOSH_DEFAULT_REQUESTS = tonumber(module:get_option("bosh_max_requests")) or 2;
 local BOSH_DEFAULT_MAXPAUSE = tonumber(module:get_option("bosh_max_pause")) or 300;
 
-local session_close_reply = { headers = default_headers, body = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate" }), attr = {} };
-
 local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8" };
+local session_close_reply = { headers = default_headers, body = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate" }), attr = {} };
 
 local cross_domain = module:get_option("cross_domain_bosh");
 if cross_domain then