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: Set Content-Type on responses. #313

Merged
merged 1 commit into from
May 26, 2022
Merged

fix: Set Content-Type on responses. #313

merged 1 commit into from
May 26, 2022

Conversation

dcr-stripe
Copy link
Contributor

@dcr-stripe dcr-stripe commented May 26, 2022

Summary

Sets an appropriate Content-Type response header, mirroring our production API. Currently stripe-mock always returns JSON or PDF (it doesn't support the Files API).

Motivation

Fixes #312

@dcr-stripe dcr-stripe merged commit 3ff86bd into master May 26, 2022
@dcr-stripe dcr-stripe deleted the dcr-content-type branch May 26, 2022 15:41
@BlueHatbRit
Copy link

BlueHatbRit commented May 27, 2022

Thanks for this, really appreciate it! :)

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.

Response content-type should be application/json rather than text/plain
3 participants