From 4f4cf07760f52d2b7e285b87fcc741a9717c6c48 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 16 Jun 2009 10:16:36 +0000 Subject: [PATCH] Removed duplicate file separator replacement --- .../netty/example/http/file/HttpStaticFileServerHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java index c4e72ad881..8d4368ccaf 100644 --- a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java @@ -156,8 +156,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler { } // Convert to absolute path. - return System.getProperty("user.dir") + File.separator + - uri.replace('/', File.separatorChar); + return System.getProperty("user.dir") + File.separator + uri; } private void sendError(ChannelHandlerContext ctx, HttpResponseStatus status) {