This commit is contained in:
idanoo 2022-11-20 18:40:30 +13:00
parent 35d2e29f5f
commit fc1a9882f9
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -108,12 +108,13 @@ func sendWebhook(msgText string) error {
if err != nil {
return err
}
log.Printf("Sending %s to %s", b, MATRIX_WEBHOOK_URL+"/"+MATRIX_CHANNEL)
req, err := http.NewRequest("POST", MATRIX_WEBHOOK_URL+"/"+MATRIX_CHANNEL, bytes.NewBuffer(b))
if err != nil {
return err
}
req.Header.Set("X-Custom-Header", "myvalue")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}