# HG changeset patch # User Kim Alvefur # Date 1557040950 -7200 # Node ID 00bdecb12779c39c2008946b2db6138fea501e31 # Parent f478e325529eaca2fc51c7c577e0aa9258c0d50c mod_http_pep_avatar: Return a message instead of 404 for base path diff -r f478e325529e -r 00bdecb12779 mod_http_pep_avatar/mod_http_pep_avatar.lua --- a/mod_http_pep_avatar/mod_http_pep_avatar.lua Sun May 05 09:21:25 2019 +0200 +++ b/mod_http_pep_avatar/mod_http_pep_avatar.lua Sun May 05 09:22:30 2019 +0200 @@ -12,6 +12,10 @@ module:provides("http", { route = { ["GET /*"] = function (event, user) + if user == "" then + return [[

Hello from mod_http_pep_avatar

This module provides access to public avatars of local users.

]]; + end; + local request, response = event.request, event.response; local actor = request.ip;