Diff

plugins/mod_bosh.lua @ 5653:c7d10b1a64b1

mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 07 Jun 2013 13:24:56 -0400
parent 5652:bfb290c8cd73
child 5654:020c5cd6eb28
line wrap: on
line diff
--- 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)