Skip to content

Commit ed50a99

Browse files
authored
feat(deps): upgrade okhttp3 to major version 5p3 to 5.3.2 (#243)
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
1 parent 3eeb8c4 commit ed50a99

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<checkstyle-version>10.23.0</checkstyle-version>
2525
<jacoco-plugin-version>0.8.10</jacoco-plugin-version>
2626
<compiler-plugin-version>3.11.0</compiler-plugin-version>
27-
<okhttp3-version>4.12.0</okhttp3-version>
27+
<okhttp3-version>5.3.2</okhttp3-version>
2828
<gson-version>2.13.1</gson-version>
2929
<commons-codec-version>1.18.0</commons-codec-version>
3030
<commons-io-version>2.19.0</commons-io-version>

src/main/java/com/ibm/cloud/sdk/core/http/InputStreamRequestBody.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import okhttp3.MediaType;
1717
import okhttp3.RequestBody;
18-
import okhttp3.internal.Util;
18+
import okhttp3.internal._UtilCommonKt;
1919
import okio.BufferedSink;
2020
import okio.Okio;
2121
import okio.Source;
@@ -98,7 +98,7 @@ public void writeTo(BufferedSink sink) throws IOException {
9898
}
9999
sink.writeAll(source);
100100
} finally {
101-
Util.closeQuietly(source);
101+
_UtilCommonKt.closeQuietly(source);
102102
}
103103
}
104104
}

src/test/java/com/ibm/cloud/sdk/core/test/security/IamAuthenticatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public void testFormBodyParamsWScope() throws Throwable {
537537
RecordedRequest tokenServerRequest = server.takeRequest();
538538
assertNotNull(tokenServerRequest);
539539
String body = tokenServerRequest.getBody().readUtf8();
540-
String expectedBody = "grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=123456789&response_type=cloud_iam&scope=scope1%20scope2%20scope3";
540+
String expectedBody = "grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=123456789&response_type=cloud_iam&scope=scope1+scope2+scope3";
541541
assertEquals(expectedBody, body);
542542
}
543543

0 commit comments

Comments
 (0)