add keepa-live for uploading script parts

This commit is contained in:
2025-05-17 15:59:53 +06:00
parent 94f598c2b4
commit 2ed8443e28
2 changed files with 4 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != n
.POST(HttpRequest.BodyPublishers.ofString(""))
.header("Content-Type", "application/json")
.header("Authorization", "Bearer $bearer")
.header("Connection", "keep-alive")
.header("Keep-Alive", "timeout=7200")
.build()
def uploadResponse = client.send(uploadRequest, HttpResponse.BodyHandlers.ofString())
if (uploadResponse.statusCode() != 200) {

View File

@@ -36,6 +36,8 @@ if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != n
.POST(HttpRequest.BodyPublishers.ofString(""))
.header("Content-Type", "application/json")
.header("Authorization", "Bearer $bearer")
.header("Connection", "keep-alive")
.header("Keep-Alive", "timeout=7200")
.build()
def uploadResponse = client.send(uploadRequest, HttpResponse.BodyHandlers.ofString())
if (uploadResponse.statusCode() != 200) {