Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUmbrella committed Nov 14, 2022
1 parent 5369986 commit 6b05c86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>vip.floatationdevice</groupId>
<artifactId>guilded4j</artifactId>
<version>0.9.11</version>
<version>0.9.12</version>
<dependencies>
<dependency>
<groupId>cn.hutool</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public G4JWebSocketClient(String token)
{
super(WEBSOCKET_URI);
clearHeaders();
addHeader("User-Agent", "Guilded4J/0.9.11 Java-WebSocket/1.5.3");
addHeader("User-Agent", "Guilded4J/0.9.12 Java-WebSocket/1.5.3");
addHeader("Authorization", "Bearer " + token);
setHeartbeatInterval(heartbeatIntervalMs);
}
Expand All @@ -59,7 +59,7 @@ public G4JWebSocketClient(String token, String lastMessageId)
{
super(WEBSOCKET_URI);
clearHeaders();
addHeader("User-Agent", "Guilded4J/0.9.11 Java-WebSocket/1.5.3");
addHeader("User-Agent", "Guilded4J/0.9.12 Java-WebSocket/1.5.3");
addHeader("Authorization", "Bearer " + token);
if(lastMessageId != null) addHeader("guilded-last-message-id", lastMessageId);
setHeartbeatInterval(heartbeatIntervalMs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.11 Hutool/5.8.9")
.header("User-Agent", "Guilded4J/0.9.12 Hutool/5.8.9")
.header("Authorization", "[REDACTED]")
.header("Accept", "application/json")
.header("Content-type", "application/json")
Expand Down

0 comments on commit 6b05c86

Please sign in to comment.