Skip to content

Commit

Permalink
Fix CachedHandlerTest.testFsFromInMemory on Windows (#8318)
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin authored Feb 1, 2024
1 parent 43ef5f8 commit 1b73963
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1b73963

Please sign in to comment.