mirror of https://github.com/fafhrd91/actix-web
docs: update changelog
This commit is contained in:
parent
00eac0cf70
commit
88f0fd4528
|
@ -6,6 +6,7 @@
|
||||||
- Improve handling of non-UTF-8 header values in `Logger` middleware.
|
- Improve handling of non-UTF-8 header values in `Logger` middleware.
|
||||||
- Add `HttpServer::shutdown_signal()` method.
|
- Add `HttpServer::shutdown_signal()` method.
|
||||||
- Mark `HttpServer` as `#[must_use]`.
|
- Mark `HttpServer` as `#[must_use]`.
|
||||||
|
- Allow SVG images to be compressed by the `Compress` middleware.
|
||||||
- Re-export `mime` dependency.
|
- Re-export `mime` dependency.
|
||||||
- Update `brotli` dependency to `8`.
|
- Update `brotli` dependency to `8`.
|
||||||
|
|
||||||
|
@ -28,7 +29,6 @@
|
||||||
- On Windows, an error is now returned from `HttpServer::bind()` (or TLS variants) when binding to a socket that's already in use.
|
- On Windows, an error is now returned from `HttpServer::bind()` (or TLS variants) when binding to a socket that's already in use.
|
||||||
- Update `brotli` dependency to `7`.
|
- Update `brotli` dependency to `7`.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.75.
|
- Minimum supported Rust version (MSRV) is now 1.75.
|
||||||
- Fix Svg images not being compressed by the `Compress` middleware.
|
|
||||||
|
|
||||||
## 4.9.0
|
## 4.9.0
|
||||||
|
|
||||||
|
|
|
@ -191,13 +191,10 @@ where
|
||||||
None => true,
|
None => true,
|
||||||
Some(hdr) => {
|
Some(hdr) => {
|
||||||
match hdr.to_str().ok().and_then(|hdr| hdr.parse::<Mime>().ok()) {
|
match hdr.to_str().ok().and_then(|hdr| hdr.parse::<Mime>().ok()) {
|
||||||
Some(mime)
|
Some(mime) if mime.type_() == mime::IMAGE => {
|
||||||
if mime.type_().as_str() == "image"
|
matches!(mime.subtype(), mime::SVG)
|
||||||
&& mime.subtype().as_str() != "svg+xml" =>
|
|
||||||
{
|
|
||||||
false
|
|
||||||
}
|
}
|
||||||
Some(mime) if mime.type_().as_str() == "video" => false,
|
Some(mime) if mime.type_() == mime::VIDEO => false,
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue