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.
|
// 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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user