Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Handle HTTP Status code 201 in the webhook sink #50

Merged
merged 2 commits into from
Jun 22, 2020

Conversation

njegosrailic
Copy link
Contributor

We are using https://www.tremor.rs/ event processing system and the REST endpoint returns HTTP status code 201 once the request is successfully processed.

Adding the small patch to handle HTTP 201 Created because it's a success status response code.

pkg/sinks/webhook.go Outdated Show resolved Hide resolved
Co-authored-by: Heinz N. Gies <heinz@licenser.net>
@Licenser
Copy link
Contributor

The CI failure seems to be an underlying issue and not related to this PR.

@njegosrailic
Copy link
Contributor Author

Hello @mustafaakin, could you please review the PR?

@mustafaakin mustafaakin merged commit b0edf7c into opsgenie:master Jun 22, 2020
@Licenser
Copy link
Contributor

Thank you @mustafaakin !

@njegosrailic njegosrailic deleted the webhook_status_code branch June 23, 2020 13:28
@njegosrailic
Copy link
Contributor Author

Thank you @mustafaakin !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants