Mercurial Hosting > luan
diff src/luan/modules/http/LuanDomainHandler.java @ 1839:908a43d14206
add Http.link_to_domain
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 30 Jan 2025 18:14:15 -0700 |
parents | 09e90d94b7b5 |
children |
line wrap: on
line diff
--- a/src/luan/modules/http/LuanDomainHandler.java Fri Jan 17 22:46:35 2025 -0700 +++ b/src/luan/modules/http/LuanDomainHandler.java Thu Jan 30 18:14:15 2025 -0700 @@ -24,7 +24,11 @@ @Override public Handler newHandler(String domain) { Luan luan = newLuan(domain); - return new LuanHandler(luan,domain); + LuanHandler handler = new LuanHandler(luan,domain); + String luanDomain = handler.getDomain(); + if( !luanDomain.equals(domain) ) + return domainHandler.getHandler(luanDomain); + return handler; } protected Luan newLuan(final String domain) {