From 36c32d09cbedc61a0620d06f42bc520d5138fcd9 Mon Sep 17 00:00:00 2001 From: jstzwj <1103870790@qq.com> Date: Mon, 23 Sep 2024 22:37:03 +0800 Subject: [PATCH] decompress_data bug fix --- olah/proxy/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olah/proxy/files.py b/olah/proxy/files.py index 3308334..e972338 100644 --- a/olah/proxy/files.py +++ b/olah/proxy/files.py @@ -138,7 +138,7 @@ async def _get_file_range_from_remote( yield raw_chunk chunk_bytes += len(raw_chunk) - final_data = decompress_data(response.headers.get("content-encoding", None)) + final_data = decompress_data(raw_data, response.headers.get("content-encoding", None)) chunk_bytes = len(final_data) yield final_data if "content-length" in response.headers: