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: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests. #1521

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

dcr-stripe
Copy link
Contributor

r? @kamil-stripe

Summary

Updates the FetchHttpClient to explicitly send an empty string for methods which expect a payload but have no request data.

Motivation

#1519

Deno injects a second Content-Length header when we don't specify body explicitly (ie. pass a concrete value other than undefined), causing Stripe POST requests without bodies to fail. By passing an explicit body, this will no longer happen.

Release plan

Publish this as a beta to validate the fix and then, if all looks good, roll it out to stable.

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