Skip to content

Commit f5a9f4c

Browse files
committed
Merge branch 'okhttp3-fix' into sept-release
2 parents 6587c0b + 6368586 commit f5a9f4c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

generator/cybersource-java-template/libraries/okhttp-gson/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ public class ApiClient {
12011201
responseCode = String.valueOf(response.code());
12021202
status = response.message();
12031203
1204-
logger.debug("Network Response :\n" + json.serialize(response.body()));
1204+
logger.debug("Network Response :\n" + json.serialize(response.headers()));
12051205
12061206
if(returnType == new TypeToken< Model.AccessTokenResponse >(){}.getType()) {
12071207
logger.debug("Response :\n" + response.peekBody(Long.MAX_VALUE).string());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
<maven.compiler.target>${java.version}</maven.compiler.target>
283283
<gson-fire-version>1.8.0</gson-fire-version>
284284
<swagger-core-version>1.5.18</swagger-core-version>
285-
<okhttp-version>3.14.4</okhttp-version>
285+
<okhttp-version>4.10.0</okhttp-version>
286286
<gson-version>2.8.9</gson-version>
287287
<jodatime-version>2.9.9</jodatime-version>
288288
<maven-plugin-version>1.0.0</maven-plugin-version>

src/main/java/Invokers/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ public <T> ApiResponse<T> execute(Call call, Type returnType) throws ApiExceptio
12011201
responseCode = String.valueOf(response.code());
12021202
status = response.message();
12031203

1204-
logger.debug("Network Response :\n" + json.serialize(response.body()));
1204+
logger.debug("Network Response :\n" + json.serialize(response.headers()));
12051205

12061206
if(returnType == new TypeToken< Model.AccessTokenResponse >(){}.getType()) {
12071207
logger.debug("Response :\n" + response.peekBody(Long.MAX_VALUE).string());

0 commit comments

Comments
 (0)