Update SessionClient.java

This commit is contained in:
zeruth
2019-05-23 00:09:16 -04:00
parent e21cf2b1c8
commit 94609a5cc1

View File

@@ -39,7 +39,8 @@ class SessionClient
{
UUID open() throws IOException
{
HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
HttpUrl url = RuneLiteAPI.getApiRoot().newBuilder()
.addPathSegment("session")
.build();
Request request = new Request.Builder()
@@ -61,8 +62,8 @@ class SessionClient
void ping(UUID uuid) throws IOException
{
HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
.addPathSegment("ping")
HttpUrl url = RuneLiteAPI.getApiRoot().newBuilder()
.addPathSegment("session")
.addQueryParameter("session", uuid.toString())
.build();
@@ -81,7 +82,8 @@ class SessionClient
void delete(UUID uuid) throws IOException
{
HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
HttpUrl url = RuneLiteAPI.getApiRoot().newBuilder()
.addPathSegment("session")
.addQueryParameter("session", uuid.toString())
.build();