v0.25.5
This commit is contained in:
1 parent
1dea7f55c8
commit
c819f0a335
151 files changed
+7610
-4264
No files matched your search
@@ -29,7 +29,8 @@ pub async fn apply(
|
||||
if response.headers().contains_key("content-range") {
|
||||
return Ok(skip(response, None, "content_range"));
|
||||
}
|
||||
let Some(kind) = content_type_kind(response.headers()).or_else(|| extension_kind(path, settings))
|
||||
let Some(kind) =
|
||||
content_type_kind(response.headers()).or_else(|| extension_kind(path, settings))
|
||||
else {
|
||||
return Ok(skip(response, None, "unsupported_type"));
|
||||
};
|
||||
@@ -79,9 +80,7 @@ pub async fn apply(
|
||||
.collect()
|
||||
.await
|
||||
.map_err(|error| {
|
||||
anyhow::anyhow!(
|
||||
"collect bounded static response for transformation: {error}"
|
||||
)
|
||||
anyhow::anyhow!("collect bounded static response for transformation: {error}")
|
||||
})?
|
||||
.to_bytes();
|
||||
if raw.len() > settings.max_body_bytes {
|
||||
|
||||
Reference in new issue
Block a user