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

Serialize to JSON when content type is set to JSON #142

Merged
merged 3 commits into from
Mar 21, 2019

Conversation

rdalverny
Copy link
Contributor

Until now, the request body is only serialized if it's a Hash.
But it could be an Array, or any other serializable type and those bodies are serialized.
See #129, probably #141 as well.

I am not sure if this wouldn't break use cases where the body is already expected to be serialized.

Until now, the request body is only serialized if it's a Hash.
But it could be an Array, or any other serializable type,
and those bodies are serialized. See brooklynDev#129, probably brooklynDev#141 as well.

I am not sure if this wouldn't break use cases where
the body is already expected to be serialized.
@coveralls
Copy link

coveralls commented Aug 4, 2017

Coverage Status

Coverage increased (+0.002%) to 99.104% when pulling 5ae25f8 on rdalverny:fix_body_encoding into 9175995 on brooklynDev:master.

@xliiauo
Copy link

xliiauo commented Aug 4, 2017

Might need to update the README as well.

@coveralls
Copy link

coveralls commented Aug 4, 2017

Coverage Status

Coverage increased (+0.008%) to 99.11% when pulling 1373fd8 on rdalverny:fix_body_encoding into 9175995 on brooklynDev:master.

@rdalverny
Copy link
Contributor Author

Not sure the README addition is clear & simple enough, but that's more explicit that way at least.

@coveralls
Copy link

coveralls commented Sep 18, 2017

Coverage Status

Coverage increased (+0.01%) to 99.114% when pulling 26e5eb3 on rdalverny:fix_body_encoding into 9175995 on brooklynDev:master.

@mycargus
Copy link
Contributor

This is great! I encountered the same issue recently while using airborne.

@sethpollack +1 from me

@sethpollack sethpollack merged commit 5e06ab1 into brooklynDev:master Mar 21, 2019
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.

5 participants