Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 4725:d085db6285db
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 19:05:03 +0100 |
parent | 4697:778eb9405a98 |
child | 4738:e95458712782 |
comparison
equal
deleted
inserted
replaced
4724:a8c234332258 | 4725:d085db6285db |
---|---|
433 function module.add_host(module) | 433 function module.add_host(module) |
434 module:depends("http"); | 434 module:depends("http"); |
435 module:provides("http", { | 435 module:provides("http", { |
436 default_path = "/http-bind"; | 436 default_path = "/http-bind"; |
437 route = { | 437 route = { |
438 ["GET"] = handle_GET; | |
438 ["GET /"] = handle_GET; | 439 ["GET /"] = handle_GET; |
440 ["OPTIONS"] = handle_OPTIONS; | |
439 ["OPTIONS /"] = handle_OPTIONS; | 441 ["OPTIONS /"] = handle_OPTIONS; |
442 ["POST"] = handle_POST; | |
440 ["POST /"] = handle_POST; | 443 ["POST /"] = handle_POST; |
441 }; | 444 }; |
442 }); | 445 }); |
443 end | 446 end |