From e0902d9ba4ce5d2081e7f91a7a42ca06a28c1e21 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 17 Oct 2024 05:34:32 +0200 Subject: [PATCH] Fix source check in entry --- entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.go b/entry.go index 57411d1..f1f3713 100644 --- a/entry.go +++ b/entry.go @@ -213,7 +213,7 @@ func (e *Entry) Check() error { // is not an XML media type [RFC3023], does not begin with "text/", and // does not end with "/xml" or "+xml". mediaType := e.Content.getType() - if !isXMLMediaType(mediaType) && !strings.HasPrefix(mediaType, "text/") { + if isValidMediaType(mediaType) && !isXMLMediaType(mediaType) && !strings.HasPrefix(mediaType, "text/") { return fmt.Errorf("no summary element of entry %v but media type not xml", e.ID.URI) } }