v0.24.7_fix
This commit is contained in:
1 parent
3883a21bc4
commit
1bfec751d1
8 files changed
+20
-8
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user