set content type header in upload
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s

This commit is contained in:
moehreag 2024-06-17 15:38:51 +02:00
parent 164858bb76
commit 11339c21d9
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -64,6 +64,7 @@ open class MetaV1UpdateTask : DefaultTask() {
} }
val post = HttpRequest.newBuilder(URI.create(UPLOAD_LOADER_URL)).POST(HttpRequest.BodyPublishers.ofString(json)) val post = HttpRequest.newBuilder(URI.create(UPLOAD_LOADER_URL)).POST(HttpRequest.BodyPublishers.ofString(json))
.header("Authorization", key) .header("Authorization", key)
.header("Content-Type", "application/json")
.build() .build()
val response = client.send(post, BodyHandlers.ofString()) val response = client.send(post, BodyHandlers.ofString())