mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-24 04:35:59 +02:00
Merge pull request #1556 from Zibbp/master
fix(InternalDownloadManager): add accept-encoding identity to requests
This commit is contained in:
commit
1e76ebe075
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class InternalDownloadManager(
|
||||||
*/
|
*/
|
||||||
@Throws(IOException::class)
|
@Throws(IOException::class)
|
||||||
fun download(url: String) {
|
fun download(url: String) {
|
||||||
val request: Request = Request.Builder().url(url).build()
|
val request: Request = Request.Builder().url(url).addHeader("Accept-Encoding", "identity").build()
|
||||||
client.newCall(request)
|
client.newCall(request)
|
||||||
.enqueue(
|
.enqueue(
|
||||||
object : Callback {
|
object : Callback {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue