# HG changeset patch # User Matthew Wild # Date 1264131363 0 # Node ID f0335b7284b1c58b329db75f05041f93eebba4ac # Parent ace62f19076db4407f401eaf0fd72798bbafd6c0 mod_bosh: I == fail. diff -r ace62f19076d -r f0335b7284b1 plugins/mod_bosh.lua --- 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";