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

Fix resend integration headers #219

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Fix resend integration headers #219

merged 2 commits into from
Dec 10, 2024

Conversation

CahidArda
Copy link
Contributor

@CahidArda CahidArda commented Dec 5, 2024

content-type header wasn't being sent, so resend couldn't process the request. But the integration worked before. So I am suspecting that either:

  • QStash used to set a default content header but it doesn't anymore.
  • Resend didn't require the header, but it does now.

To fix the issue, I added a utility to properly merge the headers and added tests to make sure that we don't miss this behavior.

Adding Method into Providers

added method to providers. This will make it easier to extend the library in the future.

content-type header wasn't being sent, so resend couldn't process the request. But the integration worked before. So I am suspecting that QStash used to set a default content header but it doesn't anymore. To fix the issue, I added a utility to properly merge the headers and added tests to make sure that we don't miss this behavior.
@CahidArda CahidArda merged commit 99822e6 into main Dec 10, 2024
6 checks passed
@CahidArda CahidArda deleted the fix-api-header-resolution branch December 10, 2024 09:26
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