Diff

plugins/mod_bosh.lua @ 2486:f0335b7284b1

mod_bosh: I == fail.
author Matthew Wild <mwild1@gmail.com>
date Fri, 22 Jan 2010 03:36:03 +0000
parent 2485:ace62f19076d
child 2608:68c43aaf681f
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Fri Jan 22 03:18:55 2010 +0000
+++ b/plugins/mod_bosh.lua	Fri Jan 22 03:36:03 2010 +0000
@@ -31,10 +31,9 @@
 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 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 default_headers = { ["Content-Type"] = "text/xml; charset=utf-8" };
-
 local cross_domain = module:get_option("cross_domain_bosh");
 if cross_domain then
 	default_headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS";