diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-10-22 08:36:54 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-10-22 08:36:54 +0500 |
commit | 8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0 (patch) | |
tree | 519471bf3dba450936c143475b97e57c76e822f8 /plugins/mod_bosh.lua | |
parent | 1df82fb6a9acfd7a8fed96fd78e888219589270a (diff) | |
download | prosody-8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0.tar.gz prosody-8e1bc4ff71ab6a0ef04da5ec8eade06092fe93a0.zip |
mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply.
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 5 |
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 |