aboutsummaryrefslogtreecommitdiffhomepage
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-08-28 14:18:12 +0200
committerBjørn Erik Pedersen <[email protected]>2018-08-28 17:00:53 +0200
commitebb56e8bdbfaf4f955326017e40b2805850871e9 (patch)
tree64935a5bfaeb5b2cc8e5c600ad2403d32d3de65c /output
parent6b9934a26615ea614b1774770532cae9762a58d3 (diff)
downloadhugo-ebb56e8bdbfaf4f955326017e40b2805850871e9.tar.gz
hugo-ebb56e8bdbfaf4f955326017e40b2805850871e9.zip
Improve minifier MIME type resolution
This commit also removes the deprecated `Suffix` from MediaType. Now use `Suffixes` and put the MIME type suffix in the type, e.g. `application/svg+xml`. Fixes #5093
Diffstat (limited to 'output')
-rw-r--r--output/outputFormat_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/output/outputFormat_test.go b/output/outputFormat_test.go
index 5d0620fa9..410fd74ba 100644
--- a/output/outputFormat_test.go
+++ b/output/outputFormat_test.go
@@ -93,11 +93,9 @@ func TestGetFormatByExt(t *testing.T) {
func TestGetFormatByFilename(t *testing.T) {
noExtNoDelimMediaType := media.TextType
- noExtNoDelimMediaType.OldSuffix = ""
noExtNoDelimMediaType.Delimiter = ""
noExtMediaType := media.TextType
- noExtMediaType.OldSuffix = ""
var (
noExtDelimFormat = Format{