wsclient: set ua on ws request

The network interceptor appears to not work for websocket requests, and so uses the default user agent
This commit is contained in:
Adam
2021-03-26 11:47:31 -04:00
parent aff6ea6fa9
commit d34deb8ec9

View File

@@ -102,6 +102,7 @@ public class WSClient extends WebSocketListener implements AutoCloseable
Request request = new Request.Builder()
.url(RuneLiteAPI.getWsEndpoint())
.header("User-Agent", RuneLiteAPI.userAgent)
.build();
webSocket = okHttpClient.newWebSocket(request, this);