Minor cleanup
Use existing method (which may cache value) rather than inlined code. Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
81c46638cd
commit
ed37a1e2fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue