From ed37a1e2fc2ed996327b4037e2569e635e131f2c Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 6 May 2020 11:18:44 +0200 Subject: [PATCH] Minor cleanup Use existing method (which may cache value) rather than inlined code. Signed-off-by: Greg Wilkins --- .../src/main/java/org/eclipse/jetty/server/Request.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java b/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java index 1a8d0be7b8e..d5426fbfc14 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java @@ -1711,7 +1711,7 @@ public class Request implements HttpServletRequest // TODO this is not really right for CONNECT path = _uri.isAbsolute() ? "/" : null; else if (encoded.startsWith("/")) - path = (encoded.length() == 1) ? "/" : URIUtil.canonicalPath(URIUtil.decodePath(encoded)); + path = (encoded.length() == 1) ? "/" : _uri.getDecodedPath(); else if ("*".equals(encoded) || HttpMethod.CONNECT.is(getMethod())) path = encoded; else