Skip to content

Commit

Permalink
Update FileUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Oct 23, 2024
1 parent 97a2c62 commit 8ee9c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/link/locutus/discord/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public static CompletableFuture<String> readStringFromURL(PagePriority priority,

Supplier<String> jsoupTask = () -> {
try {
Connection connection = Jsoup.connect(urlStr).method(post ? Connection.Method.POST : Connection.Method.GET);
Connection connection = Jsoup.connect(urlStr).method(post ? Connection.Method.POST : Connection.Method.GET)
.ignoreContentType(true);

// Add arguments to the request
if (arguments != null) {
Expand Down

0 comments on commit 8ee9c3f

Please sign in to comment.