Skip to content

Remove date header from webhook request and use constants#15407

Merged
Zeegaan merged 2 commits intorelease/13.0from
v13/hotfix/webhookevents-headernames
Dec 11, 2023
Merged

Remove date header from webhook request and use constants#15407
Zeegaan merged 2 commits intorelease/13.0from
v13/hotfix/webhookevents-headernames

Conversation

@ronaldbarendse
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

Description

As mentioned in #15375 (comment), providing the current date/time in a header doesn't add any real value. The date/time that would be of interest is when the event was raised and the WebhookRequest was created (as they're 'fired' some time later in a background thread), but that's not stored in the database yet. So lets ensure we don't sent this header yet! Besides that, I've also moved the header names into constants 👍🏻

For testing, I believe a code review should suffice, as there's no big changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants