chore(webhook): deprecate Gotenberg-Webhook-Error-Url, make it non-mandatory if Gotenberg-Webhook-Events-Url is set

This commit is contained in:
Julien Neuhart
2026-03-29 17:12:29 +02:00
parent 1ab0117943
commit 452a500955
3 changed files with 68 additions and 12 deletions

View File

@@ -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
}