Removed duplicate file separator replacement

This commit is contained in:
Trustin Lee 2009-06-16 10:16:36 +00:00
parent 51b6e05b0d
commit 4f4cf07760

View File

@ -156,8 +156,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler {
} }
// Convert to absolute path. // Convert to absolute path.
return System.getProperty("user.dir") + File.separator + return System.getProperty("user.dir") + File.separator + uri;
uri.replace('/', File.separatorChar);
} }
private void sendError(ChannelHandlerContext ctx, HttpResponseStatus status) { private void sendError(ChannelHandlerContext ctx, HttpResponseStatus status) {