aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-10-22 08:36:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-10-22 08:36:54 +0500
commit8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0 (patch)
tree519471bf3dba450936c143475b97e57c76e822f8 /plugins
parent1df82fb6a9acfd7a8fed96fd78e888219589270a (diff)
downloadprosody-8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0.tar.gz
prosody-8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0.zip
mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 4e78cd63..9546e653 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -102,7 +102,10 @@ end
function handle_request(method, body, request)
if (not body) or request.method ~= "POST" then
if request.method == "OPTIONS" then
- return { headers = default_headers, body = "" };
+ local headers = {};
+ for k,v in pairs(default_headers) do headers[k] = v; end
+ headers["Content-Type"] = nil;
+ return { headers = headers, body = "" };
else
return "<html><body>You really don't look like a BOSH client to me... what do you want?</body></html>";
end