Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Adding additional headers to outgoing webhook #47

Open
oh-bala opened this issue May 29, 2018 · 0 comments
Open

[Feature Request] Adding additional headers to outgoing webhook #47

oh-bala opened this issue May 29, 2018 · 0 comments

Comments

@oh-bala
Copy link

oh-bala commented May 29, 2018

So far looks like request post to webhook receiver is anonymous. Can this be a configuration of adding more header options?

For example: create a captain_hook.request_header callable (like $transformer), then we can use the $webhook object and original $header option, such as

// @file config/config.php
'request_header' => function ($webhook, $header = []) {
    return [
        'X-Hub-Signature' => 'sha1=xxxxxxxxxxxxxxxxxxxxx',
    ]
}
@oh-bala oh-bala changed the title Adding additional headers to outgoing webhook [Feature Request] Adding additional headers to outgoing webhook May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant