mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-28 13:12:59 -04:00
Fixed null pointer in OnlineInterfaceService
This commit is contained in:
@@ -123,7 +123,10 @@ public class OnlineInterfaceService extends Service implements HttpServerCallbac
|
||||
}
|
||||
}
|
||||
if (!socket.isSecure()) {
|
||||
socket.redirect(new URL("https", httpsServer.getBindAddress().getHostName(), httpsServer.getBindPort(), request.getURI().getPath()).toString());
|
||||
String host = request.getURI().getHost();
|
||||
if (host == null)
|
||||
host = socket.getInetAddress().getHostName();
|
||||
socket.redirect(new URL("https", host, httpsServer.getBindPort(), request.getURI().getPath()).toString());
|
||||
return;
|
||||
}
|
||||
handler.handleRequest(socket, request);
|
||||
|
||||
Reference in New Issue
Block a user