fsutil:- Extended the known list of extension for
fsutil.DetectContentTypeByExtension() - Added
fsutil.AddExtensionType()that allows to add or override items in the list of known extensions. - Added SVG signature sniffing to the content type detection. SVG files should now be detected as
image/svg+xmlinstead oftext/xml. ( @fnoopv #286 )
- Extended the known list of extension for
errors: minor optimization to avoid reallocations of the reasons slice.- Bump minimum go version to
1.25.8.
Full Changelog: v5.12.0...v5.12.0