actix-web
actix-web copied to clipboard
Fix svg files not being compressed
PR Type
Bug Fix
PR Checklist
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] A changelog entry has been made for the appropriate packages.
- [x] Format code with the latest stable rustfmt.
- [x] (Team) Label with affected crates and semver status.
Overview
#3075 removed compression for image & video files, because they usually come pre-compressed. SVG (image/svg+xml) files are exceptions (IMO), because they're text based, so they could benefit from being served as compressed assets.
Note 1: I wasn't sure whether to add a test or not. Note 2: I wasn't able to test this change because I was getting a wall of seemingly unrelated 'unresolved imports' errors in my project after switching to my fork in the Cargo.toml.