Software /
code /
prosody-modules
Diff
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 |
parent | 2451:56bab95e57f0 |
child | 2454:51cf82d36a8a |
line wrap: on
line diff
--- a/mod_candy/mod_candy.lua Fri Jan 20 01:20:48 2017 +0100 +++ b/mod_candy/mod_candy.lua Fri Jan 20 01:21:21 2017 +0100 @@ -51,7 +51,8 @@ })); end; ["GET /*"] = serve(module:get_directory().."/www_files"); - GET = function(event) + + GET = function(event) -- TODO Remove this, it's done by mod_http in 0.10+ event.response.headers.location = event.request.path.."/"; return 301; end;