Comparison

plugins/mod_bosh.lua @ 5652:bfb290c8cd73

mod_bosh: Rename event handler argument to event, not request.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 07 Jun 2013 13:21:38 -0400
parent 5651:c968c8e3596d
child 5653:c7d10b1a64b1
comparison
equal deleted inserted replaced
5651:c968c8e3596d 5652:bfb290c8cd73
97 headers.access_control_allow_origin = cross_domain; 97 headers.access_control_allow_origin = cross_domain;
98 end 98 end
99 return response; 99 return response;
100 end 100 end
101 101
102 function handle_OPTIONS(request) 102 function handle_OPTIONS(event)
103 return set_cross_domain_headers(request.response); 103 return set_cross_domain_headers(event.response);
104 end 104 end
105 105
106 function handle_POST(event) 106 function handle_POST(event)
107 log("debug", "Handling new request %s: %s\n----------", tostring(event.request), tostring(event.request.body)); 107 log("debug", "Handling new request %s: %s\n----------", tostring(event.request), tostring(event.request.body));
108 108