fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels
MIT License
17 stars 8 forks source link

Use Get function to access gitlab event header to prevent crashes #38

Closed ManiacTwister closed 5 years ago

ManiacTwister commented 5 years ago

Currently CptHook crashes when sending requests without "X-Gitlab-Event" header. The Header.Get function returns the first header value or "" if the header is missing.

fleaz commented 5 years ago

Nice. Thanks :)