Project

General

Profile

Bug #7965 ยป 0001-Allow-style-requests-after-ajax-mode-is-started.patch

Bruce Toll, 01/11/2021 03:46 AM

View differences:

src/web/WebSession.C
const std::string *requestE = request.getParameter("request");
bool requestForResource = requestE && *requestE == "resource";
bool requestForStyle = requestE && *requestE == "style";
if (requestE && *requestE == "ws" && !request.isWebSocketRequest()) {
LOG_ERROR("invalid WebSocket request, ignoring");
......
if (env_->ajax()
&& isEqual(request.requestMethod(), "GET")
&& !requestForResource
&& !requestForStyle
&& conf.reloadIsNewSession()
&& wtdE && *wtdE == sessionId_) {
LOG_SECURE("Unexpected GET request with wtd of existing Ajax session");
    (1-1/1)