Comparison

mod_websocket/mod_websocket.lua @ 849:6e2ec1825182

mod_websocket: Accept GET request without trailing /
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 15 Oct 2012 21:02:43 +0200
parent 844:a0987c0e4e1d
child 853:4d27552ac443
comparison
equal deleted inserted replaced
848:14e10bce7463 849:6e2ec1825182
468 function module.add_host(module) 468 function module.add_host(module)
469 module:depends("http"); 469 module:depends("http");
470 module:provides("http", { 470 module:provides("http", {
471 name = "xmpp-websocket"; 471 name = "xmpp-websocket";
472 route = { 472 route = {
473 ["GET /*"] = handle_request; 473 ["GET"] = handle_request;
474 ["GET /"] = handle_request;
474 }; 475 };
475 }); 476 });
476 end 477 end