1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-03 07:21:29 +01:00

Update OkHttp to 4.x

This commit is contained in:
TacoTheDank 2022-07-14 03:23:45 -04:00
parent 70e3c9805a
commit c1e78cf55b
2 changed files with 2 additions and 3 deletions

View File

@ -229,8 +229,7 @@ dependencies {
implementation "org.jsoup:jsoup:1.14.3"
// HTTP client
//noinspection GradleDependency --> do not update okhttp to keep supporting Android 4.4 users
implementation "com.squareup.okhttp3:okhttp:3.12.13"
implementation "com.squareup.okhttp3:okhttp:4.10.0"
// Media player
implementation "com.google.android.exoplayer:exoplayer-core:${exoPlayerVersion}"

View File

@ -135,7 +135,7 @@ public final class DownloaderImpl extends Downloader {
RequestBody requestBody = null;
if (dataToSend != null) {
requestBody = RequestBody.create(null, dataToSend);
requestBody = RequestBody.create(dataToSend);
}
final okhttp3.Request.Builder requestBuilder = new okhttp3.Request.Builder()