You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
listen: a trailing slash on the forwarding URL produces // in the forwarded path #475
hookdeck listen with a forwarding URL whose path ends in / forwards every request to a path containing //. The forwarding URL's path and the event's path are concatenated without being joined.
Environment
hookdeck-cli 3.1.0 (Homebrew), macOS
An Event Gateway project; a source with a connection to a CLI destination whose path is /webhook
Trimming a trailing / from p.cfg.URL.Path before appending would fix it. path.Join would also drop a trailing slash from the event's own path, which a receiver may route on.
Related, from the same line (code reading, not tested)
Only the scheme, host and path of the forwarding URL are used, so a query string on it (for example http://localhost:3000/hook?token=x) is dropped without a warning. Forwarding it, or refusing it at startup, would avoid a silent difference.
Activity