Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependency com.konghq:unirest-java-core to v4.4.0 #1333

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jjwt = "0.11.5"
slf4j = "2.0.12"
aerogel = "2.1.0"
awsSdk = "2.25.3"
unirest = "4.2.9"
unirest = "4.4.0"
caffeine = "3.1.8"
reflexion = "1.8.0"
geantyref = "1.3.15"
Expand Down Expand Up @@ -121,7 +121,7 @@ testContainersJunit = { group = "org.testcontainers", name = "junit-jupiter", ve

# unirest
unirest = { group = "com.konghq", name = "unirest-java-core", version.ref = "unirest" }
unirestGson = { group = "com.konghq", name = "unirest-object-mappers-gson", version.ref = "unirest" }
unirestGson = { group = "com.konghq", name = "unirest-modules-gson", version.ref = "unirest" }

# docker-java
dockerJavaApi = { group = "com.github.docker-java", name = "docker-java-core", version.ref = "dockerJava" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
case "urlprofile", "up" -> {
sender.sendMessage("§7Trying to get texture data based on the given texture url...");
Unirest.post("https://api.mineskin.org/generate/url")
.connectTimeout(10000)
.requestTimeout(10000)
.contentType("application/json")
.header("User-Agent", "CloudNet-NPCs")
.body(Document.newJsonDocument().append("url", args[2]).toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public record PasteServer(
return Unirest.request(this.requestMethod, String.format("%s%s", this.baseUrl(), this.apiDataEndpoint))
.body(content)
.headers(this.headers)
.connectTimeout(10_000)
.requestTimeout(10_000)
.contentType("text/plain")
.charset(StandardCharsets.UTF_8)
.accept("application/json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public ConsoleProgressWrappers(@NonNull Console console) {
public void wrapDownload(@NonNull String url, @NonNull CheckedConsumer<InputStream> streamHandler) {
Unirest
.get(url)
.connectTimeout(5000)
.requestTimeout(5000)
.thenConsume(rawResponse -> {
if (rawResponse.getStatus() == 200) {
var stream = rawResponse.getContent();
Expand Down
Loading