diff src/org/eclipse/jetty/server/handler/ResourceHandler.java @ 1013:6939226e0ac4

simplify URIUtil
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:06:33 -0600
parents 32d4b569567c
children 3718afd99988
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/ResourceHandler.java	Mon Oct 24 00:47:24 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/ResourceHandler.java	Mon Oct 24 01:06:33 2016 -0600
@@ -356,9 +356,9 @@
 
 		if (resource.isDirectory())
 		{
-			if (!request.getPathInfo().endsWith(URIUtil.SLASH))
+			if (!request.getPathInfo().endsWith("/"))
 			{
-				response.sendRedirect(response.encodeRedirectURL(URIUtil.addPaths(request.getRequestURI(),URIUtil.SLASH)));
+				response.sendRedirect(response.encodeRedirectURL(URIUtil.addPaths(request.getRequestURI(),"/")));
 				return;
 			}