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"
|
||||
version = "0.0.1-alpha.14"
|
||||
version = "0.0.1-alpha.15"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -31,7 +31,7 @@ public class HttpHelper {
|
|||
try (HttpClient client = HttpClient.newHttpClient()) {
|
||||
HttpRequest request = HttpRequest.newBuilder()
|
||||
.header("User-Agent", Constants.USER_AGENT)
|
||||
.header("Accept", "application/json")
|
||||
.header("Accept", "*/*")
|
||||
.GET()
|
||||
.uri(URI.create(url))
|
||||
.build();
|
||||
|
|
Loading…
Reference in a new issue