correct accept header
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
This commit is contained in:
parent
f74fbc5248
commit
bc47d9cc1a
|
@ -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()
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue