Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ protected String getHttpClientInfo() {

@Override
public OriginalResponse innerExecute(HttpRequest wechatPayRequest) {
try {
CloseableHttpResponse apacheHttpResponse =
apacheHttpClient.execute(buildApacheHttpRequest(wechatPayRequest));
try (CloseableHttpResponse apacheHttpResponse =
apacheHttpClient.execute(buildApacheHttpRequest(wechatPayRequest))) {
return assembleOriginalResponse(wechatPayRequest, apacheHttpResponse);
} catch (IOException e) {
throw new HttpException(wechatPayRequest, e);
Expand Down
Loading