X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=e9f9401952310010b02c0f65615d4cd5fc83c4dd;hb=20524787ef32996d36ddbcfbca8648328865dad2;hp=bcab1154cce277f7f441e5196b9c9b8624878bf4;hpb=d88fffb7afd0f34df707c3403e6448ebc196f0ec;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index bcab1154c..e9f940195 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -334,10 +334,9 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf) ); } else { - Hdr->HR.DontNeedAuth = 1; /* Flat request? show him the login screen... */ - StrBuf *NewLine = NewStrBufPlain(HKEY("GET /do_template?template=login")); - StrBufUrlescAppend(NewLine, Buf, NULL); - StrBufAppendBufPlain(NewLine, HKEY(" HTTP/1.0"), 0); + /* If this is a "flat" request for the root, display the configured landing page. */ + Hdr->HR.DontNeedAuth = 1; + StrBuf *NewLine = NewStrBufPlain(HKEY("GET /landing HTTP/1.0")); syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine)); int return_value = ReadHttpSubject(Hdr, NewLine, Buf); FreeStrBuf(&NewLine);