diff options
author | Waqas Hussain <waqas20@gmail.com> | 2013-06-07 13:24:56 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2013-06-07 13:24:56 -0400 |
commit | 6dba024252dd26e615f6e81b611bc13a7f07ca38 (patch) | |
tree | 16e3479a878dce14a6349551e4d050ee720646a6 /plugins | |
parent | 71519fd5922612696561eda0f9d4c93ff5fb1dc2 (diff) | |
download | prosody-6dba024252dd26e615f6e81b611bc13a7f07ca38.tar.gz prosody-6dba024252dd26e615f6e81b611bc13a7f07ca38.zip |
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 3 |
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) |