Skip to content

Commit 8bab643

Browse files
fubhyclaude
andcommitted
graph: Fix ArweaveClient to disable gzip compression
When reqwest gzip feature is enabled globally, Client::default() enables automatic gzip compression which removes content-length headers from responses. ArweaveClient needs content-length to check file sizes, so explicitly disable gzip for Arweave requests. Fixes test: polling_monitor::ipfs_service::test::arweave_get 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent cfb88d9 commit 8bab643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graph/src/components/link_resolver/arweave.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Default for ArweaveClient {
4242

4343
Self {
4444
base_url: "https://arweave.net".parse().unwrap(),
45-
client: Client::default(),
45+
client: Client::builder().gzip(false).build().unwrap(),
4646
logger: Logger::root(slog::Discard, o!()),
4747
}
4848
}
@@ -53,7 +53,7 @@ impl ArweaveClient {
5353
Self {
5454
base_url,
5555
logger,
56-
client: Client::default(),
56+
client: Client::builder().gzip(false).build().unwrap(),
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)