We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
content_type
1 parent f8e0726 commit 53d421bCopy full SHA for 53d421b
1 file changed
lib/rdf/format.rb
@@ -84,7 +84,7 @@ def self.each(file_name: nil,
84
when content_type
85
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
86
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7
87
- mime_type = content_type.to_s.split(';').first # remove any media type parameters
+ mime_type = content_type.to_s.split(';').first.to_s # remove any media type parameters
88
89
# Ignore text/plain, a historical encoding for N-Triples, which is
90
# problematic in format detection, as many web servers will serve
0 commit comments