We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d959188 commit f254e92Copy full SHA for f254e92
cli/content.go
@@ -158,7 +158,7 @@ type YAML struct{}
158
// Detect if the content type is YAML.
159
func (y YAML) Detect(contentType string) bool {
160
first := strings.Split(contentType, ";")[0]
161
- if first == "application/yaml" || strings.HasSuffix(first, "+yaml") {
+ if first == "application/yaml" || first == "application/x-yaml" || strings.HasSuffix(first, "+yaml") {
162
return true
163
}
164
0 commit comments