v0.24.7_fix

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-03 10:12:08 +02:00
1 parent 3883a21bc4
commit 1bfec751d1
8 files changed
+20 -8

No files matched your search

+5 -1
View File
@@ -854,7 +854,11 @@ pub async fn apply(
let raw = Limited::new(body, settings.max_body_bytes)
.collect()
.await
.context("collect bounded static response for transformation")?
.map_err(|error| {
anyhow::anyhow!(
"collect bounded static response for transformation: {error}"
)
})?
.to_bytes();
if raw.len() > settings.max_body_bytes {
let mut response = Response::from_parts(parts, Body::from(raw));