Skip to content

Commit

Permalink
Update HttpClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
RockyLOMO committed Nov 23, 2024
1 parent b17b381 commit d64cddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rxlib/src/main/java/org/rx/net/http/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,9 @@ public RequestBody toBody() {
}

//todo get request body
// boolean isGet = Strings.equalsIgnoreCase(servletRequest.getMethod(), HttpMethod.GET.name());
// ResponseContent resContent = new ResponseContent(getClient().newCall(createRequest(forwardUrl).method(servletRequest.getMethod(), isGet ? null : reqContent.toBody()).build()).execute());
ResponseContent resContent = new ResponseContent(getClient().newCall(createRequest(forwardUrl).method(servletRequest.getMethod(), reqContent.toBody()).build()).execute());
boolean isGet = Strings.equalsIgnoreCase(servletRequest.getMethod(), HttpMethod.GET.name());
ResponseContent resContent = new ResponseContent(getClient().newCall(createRequest(forwardUrl).method(servletRequest.getMethod(), isGet ? null : reqContent.toBody()).build()).execute());
// ResponseContent resContent = new ResponseContent(getClient().newCall(createRequest(forwardUrl).method(servletRequest.getMethod(), reqContent.toBody()).build()).execute());
resContent.cachingStream = (featureFlags & CACHING_STREAM_FLAG) == CACHING_STREAM_FLAG;
servletResponse.setStatus(resContent.response.code());
for (Pair<? extends String, ? extends String> header : resContent.responseHeaders()) {
Expand Down

0 comments on commit d64cddf

Please sign in to comment.