Software /
code /
prosody
Changeset
2486:f0335b7284b1
mod_bosh: I == fail.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 22 Jan 2010 03:36:03 +0000 |
parents | 2485:ace62f19076d |
children | 2487:d9db41109ba0 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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";