set content type header in upload
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
This commit is contained in:
parent
164858bb76
commit
11339c21d9
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "dev.frogmc"
|
||||
version = "0.0.1-alpha.3"
|
||||
version = "0.0.1-alpha.4"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -64,6 +64,7 @@ open class MetaV1UpdateTask : DefaultTask() {
|
|||
}
|
||||
val post = HttpRequest.newBuilder(URI.create(UPLOAD_LOADER_URL)).POST(HttpRequest.BodyPublishers.ofString(json))
|
||||
.header("Authorization", key)
|
||||
.header("Content-Type", "application/json")
|
||||
.build()
|
||||
val response = client.send(post, BodyHandlers.ofString())
|
||||
|
||||
|
|
Loading…
Reference in a new issue