Return format, not MIME type from FormatGuesser

This commit is contained in:
Owen Stephens 2019-04-10 11:25:33 +01:00
parent 7099ec3a35
commit 30019338f1

View File

@ -87,7 +87,7 @@ public class TextFormatGuesser implements FormatGuesser {
return "text/json";
} else if (openAngleBrackets >= 5 && closeAngleBrackets >= 5) {
if (trailingPeriods > 0) {
return "text/rdf+n3";
return "text/rdf/n3";
} else if (firstChar == '<') {
return "text/xml";
}