add keepa-live for uploading script parts

This commit is contained in:
InsanusMokrassar committed 2025-05-17 15:59:53 +06:00
1 parent 94f598c2b4
commit 2ed8443e28
2 files changed
+4

No files matched your search

+2
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) {
+2
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) {