diff --git a/app/src/main/java/com/nextcloud/talk/upload/chunked/ChunkedFileUploader.kt b/app/src/main/java/com/nextcloud/talk/upload/chunked/ChunkedFileUploader.kt index a7f22f419d..f3872b8471 100644 --- a/app/src/main/java/com/nextcloud/talk/upload/chunked/ChunkedFileUploader.kt +++ b/app/src/main/java/com/nextcloud/talk/upload/chunked/ChunkedFileUploader.kt @@ -63,7 +63,6 @@ import java.io.File import java.io.IOException import java.io.RandomAccessFile import java.nio.channels.FileChannel -import java.util.Arrays import java.util.Locale @AutoInjector(NextcloudTalkApplication::class) @@ -292,7 +291,7 @@ class ChunkedFileUploader( okHttpClientBuilder.followRedirects(false) okHttpClientBuilder.followSslRedirects(false) // okHttpClientBuilder.readTimeout(Duration.ofMinutes(30)) // TODO set timeout - okHttpClientBuilder.protocols(Arrays.asList(Protocol.HTTP_1_1)) + okHttpClientBuilder.protocols(listOf(Protocol.HTTP_1_1)) okHttpClientBuilder.authenticator( RestModule.MagicAuthenticator( ApiUtils.getCredentials(