Diff

plugins/mod_bosh.lua @ 5188:6689605f8591

mod_bosh: Add 'Connection: keep-alive' header
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Nov 2012 19:37:30 +0000
parent 5187:d71f731e8fe4
child 5634:7298c9bbb30f
child 5639:7a0e19e649b7
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Thu Nov 22 19:35:50 2012 +0000
+++ b/plugins/mod_bosh.lua	Thu Nov 22 19:37:30 2012 +0000
@@ -36,7 +36,7 @@
 
 local consider_bosh_secure = module:get_option_boolean("consider_bosh_secure");
 
-local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8" };
+local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8", ["Connection"] = "keep-alive" };
 
 local cross_domain = module:get_option("cross_domain_bosh", false);
 if cross_domain then