aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-06-07 13:24:56 -0400
committerWaqas Hussain <waqas20@gmail.com>2013-06-07 13:24:56 -0400
commita22bd3606b9c4e5017d00f9d80512d70e2bf4f6f (patch)
tree16e3479a878dce14a6349551e4d050ee720646a6
parente3784f09b95ea6afff43005cce671d4092589442 (diff)
downloadprosody-a22bd3606b9c4e5017d00f9d80512d70e2bf4f6f.tar.gz
prosody-a22bd3606b9c4e5017d00f9d80512d70e2bf4f6f.zip
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.
-rw-r--r--plugins/mod_bosh.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 095ba4a3..48d16df1 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -100,7 +100,8 @@ local function set_cross_domain_headers(response)
end
function handle_OPTIONS(event)
- return set_cross_domain_headers(event.response);
+ set_cross_domain_headers(event.response);
+ return "";
end
function handle_POST(event)