jsmith
(jsmith)
1
Hi,
In the docs, it says that you can pass a map of headers for the webhook call. So, I wrote this:
- name: webhook
image: plugins/webhook
settings:
urls: http://....
headers:
Authorization: test
The call works without the headers, but adding the headers section throws this error:
Any idea ?
looking at the plugin source code, the headers attribute appears to be a slice, which would meant the syntax would be adjusted as follows:
- name: webhook
image: plugins/webhook
settings:
urls: http://....
headers:
- Authorization=test
- Content-Type=text/plain
1 Like
jsmith
(jsmith)
4
Yup, just had a look at the code and indeed what you describe works. Thanks !