correct accept header
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s

This commit is contained in:
moehreag 2024-08-28 12:50:50 +02:00
parent f74fbc5248
commit bc47d9cc1a
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ plugins {
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.14" version = "0.0.1-alpha.15"
repositories { repositories {
mavenCentral() mavenCentral()

View file

@ -31,7 +31,7 @@ public class HttpHelper {
try (HttpClient client = HttpClient.newHttpClient()) { try (HttpClient client = HttpClient.newHttpClient()) {
HttpRequest request = HttpRequest.newBuilder() HttpRequest request = HttpRequest.newBuilder()
.header("User-Agent", Constants.USER_AGENT) .header("User-Agent", Constants.USER_AGENT)
.header("Accept", "application/json") .header("Accept", "*/*")
.GET() .GET()
.uri(URI.create(url)) .uri(URI.create(url))
.build(); .build();