Skip to content

Commit

Permalink
rm unused config from BodyBuilder class
Browse files Browse the repository at this point in the history
  • Loading branch information
ryber committed Aug 2, 2023
1 parent b3719a9 commit 231e73d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@

class BodyBuilder {
public static final Charset ASCII = Charset.forName("US-ASCII");
private final Config config;
private final kong.unirest.core.HttpRequest request;

BodyBuilder(Config config, kong.unirest.core.HttpRequest request) {
this.config = config;
BodyBuilder(kong.unirest.core.HttpRequest request) {
this.request = request;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private java.net.http.HttpRequest getRequest(HttpRequest<?> request) {
.version(HttpClient.Version.HTTP_2)
.method(
request.getHttpMethod().name(),
new BodyBuilder(config, request).getBody()
new BodyBuilder(request).getBody()
).timeout(Duration.ofMillis(request.getConnectTimeout()));

setHeaders(request, jreq);
Expand Down

0 comments on commit 231e73d

Please sign in to comment.