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

Commit

Permalink
Merge pull request #18 from santosoh/patch-1
Browse files Browse the repository at this point in the history
Update to use same builder object for network request
  • Loading branch information
clsource authored Aug 3, 2020
2 parents 9c18a67 + a9c089b commit fb92c39
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ private void _request(final JSONObject callback, final JSONObject action, final
mediaType = MediaType.parse(content_type);
d = Base64.decode(options.getString("data"), Base64.DEFAULT);
}
Request.Builder requestBuilder = new Request.Builder();

request = requestBuilder
request = builder
.url(url)
.method(method, RequestBody.create(mediaType, d))
.build();
Expand Down

0 comments on commit fb92c39

Please sign in to comment.