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

Support requests where the body may not be JSON #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jamesiarmes
Copy link

Some requests, such as uploading a file to OneDrive, require the contents to be passed as the body of the request. This content is not a hash, but the client currently expects a hash to be converted to JSON.

This check's the body's type before calling transform_keys, and moves the to_json call to the body formatter.

Additionally, I've added a missing require for ostruct.

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.

1 participant