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
pull/8916/head
Aron Budea 2024-04-26 03:54:32 +02:00 committed by Ashod Nakashian
parent 190a3acf78
commit b38e1f41ea
1 changed files with 2 additions and 1 deletions

View File

@ -528,7 +528,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: "