mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-24 05:28:35 +02:00
[PR #1556] [MERGED] fix(InternalDownloadManager): add accept-encoding identity to requests #1618
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1556
Author: @Zibbp
Created: 4/25/2025
Status: ✅ Merged
Merged: 4/25/2025
Merged by: @advplyr
Base:
master← Head:master📝 Commits (2)
dfc77eafix(InternalDownloadManager): add accept-encoding identity to requestsb03f59afix(InternalDownloadManager): set accept-encoding header on just the download task📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/managers/InternalDownloadManager.kt(+1 -1)📄 Description
Fixes https://github.com/advplyr/audiobookshelf-app/issues/1553.
@nichwall pointed me in the correct direction for a fix. I've tested this against my server through a reverse proxy with gzip and without the proxy, directly to the container, both work fine. This disables compression for requests using the internal download manager client. As seen in the issue the okhttp client is sending an accept encoding for gzip by default which causes issues.
And more testing you want to do on your end?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.