X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=d492ce09b5db076c79e72ad2fd1a101c134425a7;hp=26f6505f3f41f5c94e3721350390d3e2b72e8acc;hb=f233f19ac6c7260469d86e442c53ad1b1fd374b9;hpb=59579fe23cc8c931e2f4324e02b13283e2aa4afe diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 26f6505f3..d492ce09b 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -572,23 +572,13 @@ void context_loop(ParsedHttpHdrs *Hdr) if (TheSession == NULL) { TheSession = CreateSession(1, 0, &SessionList, Hdr, &SessionListMutex); - if ((StrLength(Hdr->c_username) == 0) && (!Hdr->HR.DontNeedAuth)) { - - if ((Hdr->HR.Handler != NULL) && - (XHTTP_COMMANDS & Hdr->HR.Handler->Flags) == XHTTP_COMMANDS) { - OverrideRequest(Hdr, HKEY("GET /401 HTTP/1.0")); - Hdr->HR.prohibit_caching = 1; - } - - /* - * I don't think we need this anymore now that guest mode is working - * ajc 2011jan07 - * - else { - OverrideRequest(Hdr, HKEY("GET /static/nocookies.html?force_close_session=yes HTTP/1.0")); - Hdr->HR.prohibit_caching = 1; - } - */ + if ( (StrLength(Hdr->c_username) == 0) + && (!Hdr->HR.DontNeedAuth) + && (Hdr->HR.Handler != NULL) + && ((XHTTP_COMMANDS & Hdr->HR.Handler->Flags) == XHTTP_COMMANDS) + ) { + OverrideRequest(Hdr, HKEY("GET /401 HTTP/1.0")); + Hdr->HR.prohibit_caching = 1; } if (StrLength(Hdr->c_language) > 0) {