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

Support multiple webhooks on a single flask app #7

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

fspieler
Copy link
Contributor

When endpoint argument is not passed to app.add_url_rule, flask uses view_func.__name__ to uniquely identify callbacks. This results in all callbacks having the same "unique" idenfitier: _postreceive.

An easy fix is to explicitly pass in an endpoint name, which can be identical to rule name.

Signed-Off-By: Frederic Spieler fspieler@bloomberg.net

When `endpoint` argument is not passed to `app.add_url_rule`, flask uses `view_func.__name__` to uniquely identify callbacks. This results in all callbacks having the same "unique" idenfitier: `_postreceive`.

An easy fix is to explicitly pass in an endpoint name, which can be identical to rule name.

Signed-Off-By: Frederic Spieler <fspieler@bloomberg.net>
@fophillips fophillips merged commit 605a487 into bloomberg:master Aug 14, 2017
@fophillips
Copy link
Contributor

Released in 1.0.2

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

Successfully merging this pull request may close these issues.

2 participants