From 8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 22 Oct 2010 08:36:54 +0500 Subject: mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply. --- plugins/mod_bosh.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 "You really don't look like a BOSH client to me... what do you want?"; end -- cgit v1.2.3