- Hdr->HR.DontNeedAuth = 1; /* Flat request? show him the login screen... */
- StrBuf *NewLine = NewStrBufPlain(HKEY("GET /readfwd?go="));
- StrBufUrlescAppend(NewLine, Buf, NULL);
- StrBufAppendBufPlain(NewLine, HKEY(" HTTP/1.0"), 0);
- syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
- int return_value = ReadHttpSubject(Hdr, NewLine, Buf);
+ /* If this is a "flat" request for the root, display the configured landing page. */
+ int return_value;
+ StrBuf *NewLine = NewStrBuf();
+ Hdr->HR.DontNeedAuth = 1;
+ StrBufAppendPrintf(NewLine, "GET /landing?go=%s?failvisibly=1 HTTP/1.0", ChrPtr(Buf));
+ if (verbose) syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
+ return_value = ReadHttpSubject(Hdr, NewLine, Buf);