mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Revert "Merge pull request #703 from zznty/dev"
This reverts commit3e6af5afd3
, reversing changes made to730efae7c7
.
This commit is contained in:
parent
ac6c312ed4
commit
7759ea9182
1 changed files with 1 additions and 3 deletions
|
@ -14,8 +14,6 @@
|
||||||
import java.io.RandomAccessFile;
|
import java.io.RandomAccessFile;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URLEncoder;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.time.Clock;
|
import java.time.Clock;
|
||||||
|
@ -188,7 +186,7 @@ public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest request) thr
|
||||||
final String path;
|
final String path;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
path = Paths.get(new URI(URLEncoder.encode(uri, StandardCharsets.UTF_8)).getPath()).normalize().toString().substring(1);
|
path = Paths.get(new URI(uri).getPath()).normalize().toString().substring(1);
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
sendError(ctx, BAD_REQUEST);
|
sendError(ctx, BAD_REQUEST);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue