Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5652:bfb290c8cd73 | 5653:c7d10b1a64b1 |
---|---|
98 end | 98 end |
99 return response; | 99 return response; |
100 end | 100 end |
101 | 101 |
102 function handle_OPTIONS(event) | 102 function handle_OPTIONS(event) |
103 return set_cross_domain_headers(event.response); | 103 set_cross_domain_headers(event.response); |
104 return ""; | |
104 end | 105 end |
105 | 106 |
106 function handle_POST(event) | 107 function handle_POST(event) |
107 log("debug", "Handling new request %s: %s\n----------", tostring(event.request), tostring(event.request.body)); | 108 log("debug", "Handling new request %s: %s\n----------", tostring(event.request), tostring(event.request.body)); |
108 | 109 |