Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 5671:d5059e73db53
mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Jun 2013 17:47:49 +0100 |
parent | 5670:9218a0e81a41 |
child | 5674:ebdbf4cf0b2f |
child | 5726:3bccc68a38e3 |
comparison
equal
deleted
inserted
replaced
5670:9218a0e81a41 | 5671:d5059e73db53 |
---|---|
34 local BOSH_DEFAULT_REQUESTS = module:get_option_number("bosh_max_requests", 2); | 34 local BOSH_DEFAULT_REQUESTS = module:get_option_number("bosh_max_requests", 2); |
35 local bosh_max_wait = module:get_option_number("bosh_max_wait", 120); | 35 local bosh_max_wait = module:get_option_number("bosh_max_wait", 120); |
36 | 36 |
37 local consider_bosh_secure = module:get_option_boolean("consider_bosh_secure"); | 37 local consider_bosh_secure = module:get_option_boolean("consider_bosh_secure"); |
38 | 38 |
39 local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8", ["Connection"] = "keep-alive" }; | 39 local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8" }; |
40 | 40 |
41 local cross_domain = module:get_option("cross_domain_bosh", false); | 41 local cross_domain = module:get_option("cross_domain_bosh", false); |
42 if cross_domain then | 42 if cross_domain then |
43 default_headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS"; | 43 default_headers["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS"; |
44 default_headers["Access-Control-Allow-Headers"] = "Content-Type"; | 44 default_headers["Access-Control-Allow-Headers"] = "Content-Type"; |