-
Notifications
You must be signed in to change notification settings - Fork 46
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
Headers removed when using request_serializer :json #78
Comments
Never mind seems that calling |
I just got bitten by this behavior 😡 Not at all what was expected and it goes completely against everything documented in the README. |
Could we re-open this issue until either a fix is implemented or the documentation has been updated? |
@zmillman I'd happily accept a PR which changes the README - I'm not sure if this is a bug or not (I don't recall the default behavior when doing the same with vanilla AFNetworking), but if you do want to investigate more I'd definitely merge that PR as well |
Seems like issue is that In Obj-C, you have to be very explicit about which serializer you're configuring headers for so you wouldn't even be able to call the equivalent of I'm not sure whether order mattering in the DSL is truly a "bug" (or just a vicious gotcha) but I'll definitely throw together a PR to clarify the documentation. |
Request serializer setting clears headers. rubymotion-community/afmotion#78 Change order to receive response as JSON
Hi,
I need to post to a service that expect body to be in json format but also this service expect headers like:
If I don't use the
request_serializer :json
my service receive the headers but content is not send as json, if I addrequest_serializer :json
content is sent as json but headers are missing.I'm not sure what I'm missing here, if this is the right behavior or if this is a bug.
The text was updated successfully, but these errors were encountered: