PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python
MIT License
129 stars 29 forks source link

[V4.1.4] include the routing key in the body #55

Closed Deconstrained closed 3 years ago

Deconstrained commented 3 years ago

This overrides the post method so that routing_key is always included when making Events API calls.

This fixes a regression in the use case of calling EventsAPISession.post directly w/o explicitly including a routing key in the event body, which was possible before version 4.1.3 (when the X-Routing-Key header was sent with the request).