mirror of
1
Fork 0
forgejo/routers/api/v1/utils
KN4CK3R 9b1b4b5433
Refactor Webhook + Add X-Hub-Signature ()
This PR removes multiple unneeded fields from the `HookTask` struct and adds the two headers `X-Hub-Signature` and `X-Hub-Signature-256`.

## ⚠️ BREAKING ⚠️ 

* The `Secret` field is no longer passed as part of the payload.
* "Breaking" change (or fix?): The webhook history shows the real called url and not the url registered in the webhook (`deliver.go`@129).

Close 
Fixes 
Fixes 

Co-authored-by: zeripath <art27@cantab.net>
2021-06-27 20:21:09 +01:00
..
hook.go Refactor Webhook + Add X-Hub-Signature () 2021-06-27 20:21:09 +01:00
utils.go Fix some API bugs () 2021-06-18 01:24:55 +02:00