Skip to content

Commit 3ea8ede

Browse files
committed
1.41
1 parent 8b3d05d commit 3ea8ede

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package dev.felnull.fnjl;
22

33
public class FNJLBuildIn {
4-
protected static final String VERSION = "1.40";
4+
protected static final String VERSION = "1.41";
55
}

common/src/main/java/dev/felnull/fnjl/util/FNURLUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public static FNPair<String, Integer> getResponseByPOST(URL url, String body, St
152152
con.setRequestProperty("Content-Type", String.format("%s; charset=utf-8", contentType));
153153
con.setRequestProperty("Content-Length", String.valueOf(body.getBytes(StandardCharsets.UTF_8).length));
154154

155-
OutputStreamWriter out = new OutputStreamWriter(con.getOutputStream());
156-
out.write(body);
155+
OutputStream out = con.getOutputStream();
156+
out.write(body.getBytes(StandardCharsets.UTF_8));
157157
out.flush();
158158
con.connect();
159159
int sts = con.getResponseCode();
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package dev.felnull.fnjltest;
22

3+
import dev.felnull.fnjl.util.DiscordWebHookBuilder;
4+
35
public class Main {
46
public static void main(String[] args) throws Exception {
5-
7+
String url = "";
8+
DiscordWebHookBuilder db = new DiscordWebHookBuilder(url, "ウァァ!!オレモイッチャウゥゥゥ!!!ウウウウウウウウウゥゥゥゥゥゥゥゥウウウウウウウウ!イィィイィィィイイイィイイイイ");
9+
db.send();
610
}
711
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fnjl_group=dev.felnull
22
fnjl_name=felnull-java-library
3-
fnjl_version=1.40
3+
fnjl_version=1.41
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.felnull.fnjln;
22

33
public class FNJLNBuildIn {
4-
protected static final String VERSION = "1.40";
4+
protected static final String VERSION = "1.41";
55

66
protected static final int NATIVE_LIBRARY_VERSION = 1;
77
}

0 commit comments

Comments
 (0)