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: I73afaa0559c3dddc09a8ed5f786fb5126e1c8f0cpull/8916/head
parent
190a3acf78
commit
b38e1f41ea
|
@ -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: "
|
||||
|
|
Loading…
Reference in New Issue