Removed duplicate file separator replacement
This commit is contained in:
parent
51b6e05b0d
commit
4f4cf07760
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user