mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-10 21:02:36 +01:00
Assume auth url has trailing slash
This commit is contained in:
parent
73a5cfdee6
commit
2fcdeec49e
@ -565,7 +565,7 @@ public class NMSImpl implements NMSBridge {
|
||||
if (!(sessionService instanceof YggdrasilMinecraftSessionService))
|
||||
return sessionService.fetchProfile(profile.getId(), requireSecure).profile();
|
||||
URL url = HttpAuthenticationService
|
||||
.constantURL(getAuthServerBaseUrl() + "/" + UndashedUuid.toString(profile.getId()));
|
||||
.constantURL(getAuthServerBaseUrl() + UndashedUuid.toString(profile.getId()));
|
||||
url = HttpAuthenticationService.concatenateURL(url, "unsigned=" + !requireSecure);
|
||||
MinecraftClient client = (MinecraftClient) MINECRAFT_CLIENT.invoke(sessionService);
|
||||
MinecraftProfilePropertiesResponse response = client.get(url, MinecraftProfilePropertiesResponse.class);
|
||||
|
@ -544,7 +544,7 @@ public class NMSImpl implements NMSBridge {
|
||||
if (!(sessionService instanceof YggdrasilMinecraftSessionService))
|
||||
return sessionService.fetchProfile(profile.getId(), requireSecure).profile();
|
||||
URL url = HttpAuthenticationService
|
||||
.constantURL(getAuthServerBaseUrl() + "/" + UndashedUuid.toString(profile.getId()));
|
||||
.constantURL(getAuthServerBaseUrl() + UndashedUuid.toString(profile.getId()));
|
||||
url = HttpAuthenticationService.concatenateURL(url, "unsigned=" + !requireSecure);
|
||||
MinecraftClient client = (MinecraftClient) MINECRAFT_CLIENT.invoke(sessionService);
|
||||
MinecraftProfilePropertiesResponse response = client.get(url, MinecraftProfilePropertiesResponse.class);
|
||||
|
Loading…
Reference in New Issue
Block a user