osbuddy client: set UA to RuneLite

This commit is contained in:
Adam
2019-08-12 17:04:55 -04:00
parent 86f0c5ebd2
commit d77134893a

View File

@@ -37,8 +37,6 @@ import okhttp3.Response;
public class OsbuddyClient
{
private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36";
public Map<Integer, OsbuddySummaryItem> getSummary() throws IOException
{
HttpUrl httpUrl = new HttpUrl.Builder()
@@ -50,7 +48,7 @@ public class OsbuddyClient
Request request = new Request.Builder()
.url(httpUrl)
.header("User-Agent", USER_AGENT)
.header("User-Agent", "RuneLite")
.build();
try (Response responseOk = RuneLiteAPI.CLIENT.newCall(request).execute())