diff --git a/gradle/webhook.gradle b/gradle/webhook.gradle index dda12fc..66737af 100644 --- a/gradle/webhook.gradle +++ b/gradle/webhook.gradle @@ -42,6 +42,7 @@ def send(String url, List files, JsonObject payload) { } con.disconnect() + con = webhook.openConnection() as HttpURLConnection con.setRequestProperty 'Content-Type', 'multipart/form-data; boundary=boundary' con.setRequestProperty 'User-Agent', 'Mozilla/5.0' @@ -94,4 +95,4 @@ abstract class WebhookExt { message = p.objects.property(String) message.convention('') } -} \ No newline at end of file +}