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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user