Mercurial > prosody-modules
comparison mod_candy/mod_candy.lua @ 2453:f36a6dcc05ef
mod_candy: Add note about redirect from /candy to /candy/ not being necessary anymore
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 20 Jan 2017 01:21:21 +0100 |
| parents | 56bab95e57f0 |
| children | 51cf82d36a8a |
comparison
equal
deleted
inserted
replaced
| 2452:7d86018a6394 | 2453:f36a6dcc05ef |
|---|---|
| 49 host = module:get_host(); | 49 host = module:get_host(); |
| 50 anonymous = module:get_option_string("authentication") == "anonymous"; | 50 anonymous = module:get_option_string("authentication") == "anonymous"; |
| 51 })); | 51 })); |
| 52 end; | 52 end; |
| 53 ["GET /*"] = serve(module:get_directory().."/www_files"); | 53 ["GET /*"] = serve(module:get_directory().."/www_files"); |
| 54 GET = function(event) | 54 |
| 55 GET = function(event) -- TODO Remove this, it's done by mod_http in 0.10+ | |
| 55 event.response.headers.location = event.request.path.."/"; | 56 event.response.headers.location = event.request.path.."/"; |
| 56 return 301; | 57 return 301; |
| 57 end; | 58 end; |
| 58 } | 59 } |
| 59 }); | 60 }); |
