Browse Source

media: Only show deprecation warning when needed

Fixes #4927
pull/4928/head
Bjørn Erik Pedersen 7 years ago
parent
commit
ac53035030
No known key found for this signature in database GPG Key ID: 330E6E2BD4859D8F
  1. 2
      media/mediaType.go

2
media/mediaType.go

@ -314,7 +314,7 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
_, delimiterSet := vm["delimiter"]
_, suffixSet := vm["suffix"]
if mediaType.OldSuffix != "" {
if suffixSet {
suffixIsDeprecated()
}

Loading…
Cancel
Save