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 f0edc11 commit 0a26e7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle/webhook.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def send(String url, List<File> 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'
Expand Down

0 comments on commit 0a26e7e

Please sign in to comment.