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

Commit a168f2b

Browse files
tracyboehrerTracy Boehrer
andauthored
Corrected previous merge snafu (#1495)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
1 parent 288f49f commit a168f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/bot-builder/src/test/java/com/microsoft/bot/builder/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

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

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

2728
private final static String RECORD_FOLDER = "session-records/";
@@ -288,7 +289,7 @@ private void extractResponseData(
288289
String contentType = response.header("Content-Type");
289290
if (contentType != null) {
290291
if (contentType.startsWith("application/json")) {
291-
content = buffer.readString(Util.UTF_8);
292+
content = buffer.readString(UTF_8);
292293
} else {
293294
content = BaseEncoding.base64().encode(buffer.readByteArray());
294295
}

0 commit comments

Comments
 (0)