mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.
authorWaqas Hussain <waqas20@gmail.com>
Fri, 07 Jun 2013 13:24:56 -0400
changeset 5653 c7d10b1a64b1
parent 5652 bfb290c8cd73
child 5654 020c5cd6eb28
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Fri Jun 07 13:21:38 2013 -0400
+++ b/plugins/mod_bosh.lua	Fri Jun 07 13:24:56 2013 -0400
@@ -100,7 +100,8 @@
 end
 
 function handle_OPTIONS(event)
-	return set_cross_domain_headers(event.response);
+	set_cross_domain_headers(event.response);
+	return "";
 end
 
 function handle_POST(event)