diff --git a/webserver/static-content/src/main/java/io/helidon/webserver/staticcontent/FileSystemContentHandler.java b/webserver/static-content/src/main/java/io/helidon/webserver/staticcontent/FileSystemContentHandler.java index 0fa1f5102ac..d0ab9570794 100644 --- a/webserver/static-content/src/main/java/io/helidon/webserver/staticcontent/FileSystemContentHandler.java +++ b/webserver/static-content/src/main/java/io/helidon/webserver/staticcontent/FileSystemContentHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2023 Oracle and/or its affiliates. + * Copyright (c) 2017, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ boolean doHandle(Method method, String requestedPath, ServerRequest req, ServerR String rawPath = req.prologue().uriPath().rawPath(); - String relativePath = root.relativize(path).toString(); + String relativePath = root.relativize(path).toString().replace("\\", "/"); String requestedResource; if (mapped) { requestedResource = relativePath;