Skip to content

Commit 456d57c

Browse files
committed
- fixes a bug where the scanner class doesn't have a charset CTOR on android
1 parent 8fb77c4 commit 456d57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/http/CoreHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private Request convertIHttpRequestToOkHttpRequest(IHttpRequest request) {
592592
public static String streamToString(@Nonnull final InputStream input) {
593593
Objects.requireNonNull(input, "parameter input cannot be null");
594594
final String endOfFile = "\\A";
595-
try (final Scanner scanner = new Scanner(input, JSON_ENCODING)) {
595+
try (final Scanner scanner = new Scanner(input, JSON_ENCODING.name())) {
596596
scanner.useDelimiter(endOfFile);
597597
if (scanner.hasNext()) {
598598
return scanner.next();

0 commit comments

Comments
 (0)