1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-15 18:16:46 +01:00

Increase response peek bytes to 1000.

This will increase the probability that version is parsed.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
Yahor Berdnikau 2018-03-18 18:38:28 +01:00
parent bf6026087a
commit 44114e90ab

View File

@ -9,7 +9,7 @@ import okhttp3.Response
import org.moire.ultrasonic.api.subsonic.SubsonicAPIVersions
import java.io.IOException
private const val DEFAULT_PEEK_BYTE_COUNT = 100L
private const val DEFAULT_PEEK_BYTE_COUNT = 1000L
/**
* Special [Interceptor] that adds client supported version to request and tries to update it