1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-12 10:23:16 +03:00

Update README.md

flip wrong parameters
This commit is contained in:
ittzik
2019-09-11 01:24:33 +03:00
committed by GitHub
parent a3f1e44262
commit a8fdefaa50

View File

@@ -55,7 +55,7 @@ public static final MediaType JSON
OkHttpClient client = new OkHttpClient();
String post(String url, String json) throws IOException {
RequestBody body = RequestBody.create(json, JSON);
RequestBody body = RequestBody.create(JSON, json);
Request request = new Request.Builder()
.url(url)
.post(body)