From fad3f5fdcc26f4a81a0e1a28eba8161d3bd0419d Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Thu, 10 Mar 2022 14:47:33 +0100 Subject: [PATCH] =?UTF-8?q?Essai=20de=20chunk=20pour=20l=E2=80=99envoi=20d?= =?UTF-8?q?es=20paquets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/pulp.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/pulp.groovy b/vars/pulp.groovy index 98c65ad..663490b 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -41,7 +41,7 @@ def exportPackages( ) { def exportTasks = [] packages.each { - def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/content/deb/packages/", httpMode: 'POST', ignoreSslErrors: true, multipartName: "file", timeout: 900, uploadFile: "${it}" + def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/content/deb/packages/", httpMode: 'POST', ignoreSslErrors: true, multipartName: "file", customHeaders: [[name: 'Transfer-Encoding', value: 'chunked']] timeout: 900, uploadFile: "${it}" def jsonResponse = readJSON text: response.content exportTasks << jsonResponse['task'] }