diff --git a/pom.xml b/pom.xml index 422faa0..c1b234a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,17 +6,17 @@ vip.floatationdevice guilded4j - 0.9.10 + 0.9.11 cn.hutool hutool-http - 5.8.8 + 5.8.9 cn.hutool hutool-json - 5.8.8 + 5.8.9 com.google.guava diff --git a/src/main/java/vip/floatationdevice/guilded4j/G4JWebSocketClient.java b/src/main/java/vip/floatationdevice/guilded4j/G4JWebSocketClient.java index c8f8ee0..3ad1a78 100644 --- a/src/main/java/vip/floatationdevice/guilded4j/G4JWebSocketClient.java +++ b/src/main/java/vip/floatationdevice/guilded4j/G4JWebSocketClient.java @@ -45,7 +45,7 @@ public G4JWebSocketClient(String token) { super(WEBSOCKET_URI); clearHeaders(); - addHeader("User-Agent", "Guilded4J/0.9.10 Java-WebSocket/1.5.3"); + addHeader("User-Agent", "Guilded4J/0.9.11 Java-WebSocket/1.5.3"); addHeader("Authorization", "Bearer " + token); setHeartbeatInterval(heartbeatIntervalMs); } @@ -59,7 +59,7 @@ public G4JWebSocketClient(String token, String lastMessageId) { super(WEBSOCKET_URI); clearHeaders(); - addHeader("User-Agent", "Guilded4J/0.9.10 Java-WebSocket/1.5.3"); + addHeader("User-Agent", "Guilded4J/0.9.11 Java-WebSocket/1.5.3"); addHeader("Authorization", "Bearer " + token); if(lastMessageId != null) addHeader("guilded-last-message-id", lastMessageId); setHeartbeatInterval(heartbeatIntervalMs); diff --git a/src/main/java/vip/floatationdevice/guilded4j/rest/RestManager.java b/src/main/java/vip/floatationdevice/guilded4j/rest/RestManager.java index f9b4d08..4203c30 100644 --- a/src/main/java/vip/floatationdevice/guilded4j/rest/RestManager.java +++ b/src/main/java/vip/floatationdevice/guilded4j/rest/RestManager.java @@ -82,7 +82,7 @@ public JSONObject execute(Method method, String url, JSONObject body) { HttpRequest req = new HttpRequest(UrlBuilder.of(url)) .method(method) - .header("User-Agent", "Guilded4J/0.9.10 Hutool/5.8.8") + .header("User-Agent", "Guilded4J/0.9.11 Hutool/5.8.9") .header("Authorization", "[REDACTED]") .header("Accept", "application/json") .header("Content-type", "application/json")