diff --git a/gradle/webhook.gradle b/gradle/webhook.gradle index 66737af..5aa588e 100644 --- a/gradle/webhook.gradle +++ b/gradle/webhook.gradle @@ -43,6 +43,8 @@ def send(String url, List files, JsonObject payload) { con.disconnect() con = webhook.openConnection() as HttpURLConnection + con.requestMethod = 'POST' + con.doOutput = true con.setRequestProperty 'Content-Type', 'multipart/form-data; boundary=boundary' con.setRequestProperty 'User-Agent', 'Mozilla/5.0'