From 800a7a53a6454a240987092b229825b508b3a64b Mon Sep 17 00:00:00 2001 From: lkstrp Date: Mon, 26 Jan 2026 10:25:23 +0100 Subject: [PATCH 1/3] fix: exclude zstd compression for cloudflare --- src/snakemake_storage_plugin_cached_http/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/snakemake_storage_plugin_cached_http/__init__.py b/src/snakemake_storage_plugin_cached_http/__init__.py index b4dd009..e5f5706 100644 --- a/src/snakemake_storage_plugin_cached_http/__init__.py +++ b/src/snakemake_storage_plugin_cached_http/__init__.py @@ -218,7 +218,10 @@ async def client(self): timeout = httpx.Timeout(60, pool=None) self._client = httpx.AsyncClient( - follow_redirects=True, limits=limits, timeout=timeout + follow_redirects=True, + limits=limits, + timeout=timeout, + headers={"Accept-Encoding": "gzip, deflate, br"}, ) try: From bf0053c2ed3fdca1773805600e3297206ad94763 Mon Sep 17 00:00:00 2001 From: lkstrp Date: Mon, 26 Jan 2026 10:54:23 +0100 Subject: [PATCH 2/3] Revert "fix: exclude zstd compression for cloudflare" This reverts commit 800a7a53a6454a240987092b229825b508b3a64b. --- src/snakemake_storage_plugin_cached_http/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/snakemake_storage_plugin_cached_http/__init__.py b/src/snakemake_storage_plugin_cached_http/__init__.py index e5f5706..b4dd009 100644 --- a/src/snakemake_storage_plugin_cached_http/__init__.py +++ b/src/snakemake_storage_plugin_cached_http/__init__.py @@ -218,10 +218,7 @@ async def client(self): timeout = httpx.Timeout(60, pool=None) self._client = httpx.AsyncClient( - follow_redirects=True, - limits=limits, - timeout=timeout, - headers={"Accept-Encoding": "gzip, deflate, br"}, + follow_redirects=True, limits=limits, timeout=timeout ) try: From 18c708d249fae997ff5d24ff85cdb246d5ed0a27 Mon Sep 17 00:00:00 2001 From: lkstrp Date: Mon, 26 Jan 2026 10:56:47 +0100 Subject: [PATCH 3/3] add zstd dep --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 9c630f6..b389c28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ dependencies = [ "snakemake-storage-plugin-http ~= 0.3", "tqdm-loggable ~= 0.2", "typing-extensions ~= 4.15", + "zstandard ~=0.25.0", ] classifiers = [ "Development Status :: 4 - Beta",