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

Stop FileService from mutating its RequestOptions argument #2625

Merged
merged 3 commits into from
Dec 21, 2022

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Dec 21, 2022

Notify

r? @anniel-stripe

Summary

A user reported getting an error like Unrecognized request URL (GET: /v1/terminal/configurations) after reusing RequestOptions in FileService and then the ConfigurationService, because FileService mutates RequestOptions and sets the base to files.stripe.com and files.stripe.com/v1/terminal/configurations doesn't exist.

This is unintuitive. Fixing it shouldn't be considered breaking. I can't imagine that any user is dependent on this behavior.

@richardm-stripe richardm-stripe merged commit 84932a8 into master Dec 21, 2022
@richardm-stripe richardm-stripe deleted the richardm-stop-mutation branch December 21, 2022 20:41
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.

3 participants