mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-06-06 16:44:10 +00:00
parent
f5eb6ce03e
commit
663859d2e5
@ -21,10 +21,8 @@ import io.netty.channel.SimpleChannelInboundHandler;
|
|||||||
import io.netty.handler.codec.http.*;
|
import io.netty.handler.codec.http.*;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URLDecoder;
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -244,9 +242,9 @@ public final class HttpRequestHandler extends SimpleChannelInboundHandler<HttpOb
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return uri.resolve( new URI( URLDecoder.decode( location, "UTF-8" ) ) );
|
return uri.resolve( new URI( location ) );
|
||||||
}
|
}
|
||||||
catch( UnsupportedEncodingException | IllegalArgumentException | URISyntaxException e )
|
catch( IllegalArgumentException | URISyntaxException e )
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user