Skip to content

Commit

Permalink
pls work :(
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 authored Oct 24, 2023
1 parent 73f73ae commit f0edc11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradle/webhook.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def send(String url, List<File> 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'
Expand Down Expand Up @@ -94,4 +95,4 @@ abstract class WebhookExt {
message = p.objects.property(String)
message.convention('')
}
}
}

0 comments on commit f0edc11

Please sign in to comment.