Skip to content

Commit f254e92

Browse files
committed
fix: understand application/x-yaml
1 parent d959188 commit f254e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/content.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type YAML struct{}
158158
// Detect if the content type is YAML.
159159
func (y YAML) Detect(contentType string) bool {
160160
first := strings.Split(contentType, ";")[0]
161-
if first == "application/yaml" || strings.HasSuffix(first, "+yaml") {
161+
if first == "application/yaml" || first == "application/x-yaml" || strings.HasSuffix(first, "+yaml") {
162162
return true
163163
}
164164

0 commit comments

Comments
 (0)