Bug #7965 ยป 0001-Allow-style-requests-after-ajax-mode-is-started.patch
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");
|