Don't log warnings about version mismatch for admin console

It's only relevant for regular URLs that contain version hash.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I73afaa0559c3dddc09a8ed5f786fb5126e1c8f0c
(cherry picked from commit b38e1f41ea)
pull/8924/head
Aron Budea 2024-04-26 03:54:32 +02:00 committed by Ashod Nakashian
parent 7b4d7d180b
commit 5e28e9bee2
1 changed files with 2 additions and 1 deletions

View File

@ -522,7 +522,8 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request,
LOG_TRC("Fileserver request: " << requestUri.toString());
requestUri.normalize(); // avoid .'s and ..'s
if (requestUri.getPath().find("browser/" COOLWSD_VERSION_HASH "/") == std::string::npos)
if (requestUri.getPath().find("browser/" COOLWSD_VERSION_HASH "/") == std::string::npos &&
requestUri.getPath().find("admin/") == std::string::npos)
{
LOG_WRN("Client - server version mismatch, disabling browser cache. "
"Expected: " COOLWSD_VERSION_HASH "; Actual URI path with version hash: "