mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 20:32:13 +01:00
chore(webhook): deprecate Gotenberg-Webhook-Error-Url, make it non-mandatory if Gotenberg-Webhook-Events-Url is set
This commit is contained in:
@@ -39,6 +39,11 @@ type client struct {
|
||||
func (c client) send(ctx context.Context, body io.Reader, headers map[string]string, errored bool) error {
|
||||
url := c.url
|
||||
if errored {
|
||||
if c.errorUrl == "" {
|
||||
// No error URL provided; error details will be sent
|
||||
// via the events URL instead.
|
||||
return nil
|
||||
}
|
||||
url = c.errorUrl
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user