Skip to content

Commit

Permalink
fix okhttp transport
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Jul 28, 2018
1 parent cdaf02c commit 8907226
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public <T> void get(TypeReference<T> typeReference, ResultCallback<T> resultCall
@SneakyThrows
public InputStream post(Object entity) {
Request request = requestBuilder
.post(RequestBody.create(null, objectMapper.writeValueAsBytes(entity)))
.post(RequestBody.create(MediaType.parse("application/json"), objectMapper.writeValueAsBytes(entity)))
.build();

return execute(request).body().byteStream();
Expand Down

0 comments on commit 8907226

Please sign in to comment.