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.
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) {