Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Send only json in post request #7

Open
dielfilho-zz opened this issue Sep 28, 2016 · 3 comments
Open

Send only json in post request #7

dielfilho-zz opened this issue Sep 28, 2016 · 3 comments

Comments

@dielfilho-zz
Copy link

dielfilho-zz commented Sep 28, 2016

How can I send only json in post request?

I'm using
ArrayMap<String, String> params = new ArrayMap<String, String>(); String jsonParam = gson.toJson(param); params.put("", jsonParam);
But the request is send with = symbol
Example: ={test:"test"}

I already put the OptimusHttp.CONTENT_TYPE_JSON, but the "=" still appear

@luizfelipetx
Copy link

Hi i create this fix to problem.
#8

@Romgua
Copy link

Romgua commented Mar 19, 2018

I still have the same error with your fix :/

@dielfilho-zz
Copy link
Author

The #8 pull request was not being accepted yet. @luizfelipetx can you resolve the conflicts on this PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants