Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit aced292

Browse files
* The link is broken, due to uppercase letter. * Upgrading okhttp to 4.9.2 in order to fix vulnerability https://security.snyk.io/vuln/SNYK-JAVA-COMSQUAREUPOKHTTP3-2958044 Co-authored-by: Nicolas Deverge <nicolas@teammood.com> Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
1 parent 55b62eb commit aced292

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ We use the [@botframework](https://twitter.com/botframework) account on twitter
108108
The [Gitter Channel](https://gitter.im/Microsoft/BotBuilder) provides a place where the Community can get together and collaborate.
109109

110110
## Contributing and our code of conduct
111-
We welcome contributions and suggestions. Please see our [contributing guidelines](./contributing.md) for more information.
111+
We welcome contributions and suggestions. Please see our [contributing guidelines](./Contributing.md) for more information.
112112

113113
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
114114
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact

libraries/bot-connector/src/test/java/com/microsoft/bot/connector/base/InterceptorManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.fasterxml.jackson.databind.SerializationFeature;
88
import com.google.common.io.BaseEncoding;
99
import okhttp3.*;
10-
import okhttp3.internal.Util;
1110
import okio.Buffer;
1211
import okio.BufferedSource;
1312

@@ -21,6 +20,8 @@
2120
import java.util.Map;
2221
import java.util.zip.GZIPInputStream;
2322

23+
import static java.nio.charset.StandardCharsets.UTF_8;
24+
2425
public class InterceptorManager {
2526

2627
private final static String RECORD_FOLDER = "session-records/";
@@ -255,7 +256,7 @@ private void extractResponseData(Map<String, String> responseData, Response resp
255256
if (contentType != null) {
256257
if (contentType.startsWith("application/json"))
257258
{
258-
content = buffer.readString(Util.UTF_8);
259+
content = buffer.readString(UTF_8);
259260
} else {
260261
content = BaseEncoding.base64().encode(buffer.readByteArray());
261262
}

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,22 +362,22 @@
362362
<dependency>
363363
<groupId>com.squareup.okhttp3</groupId>
364364
<artifactId>okhttp</artifactId>
365-
<version>3.14.9</version>
365+
<version>4.9.2</version>
366366
</dependency>
367367
<dependency>
368368
<groupId>com.squareup.okhttp3</groupId>
369369
<artifactId>logging-interceptor</artifactId>
370-
<version>3.14.9</version>
370+
<version>4.9.2</version>
371371
</dependency>
372372
<dependency>
373373
<groupId>com.squareup.okhttp3</groupId>
374374
<artifactId>okhttp-urlconnection</artifactId>
375-
<version>3.14.9</version>
375+
<version>4.9.2</version>
376376
</dependency>
377377
<dependency>
378378
<groupId>com.squareup.okhttp3</groupId>
379379
<artifactId>mockwebserver</artifactId>
380-
<version>3.14.9</version>
380+
<version>4.9.2</version>
381381
<scope>test</scope>
382382
</dependency>
383383

0 commit comments

Comments
 (0)