You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/12/22 21:47:33 UTC

svn commit: r1553029 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java

Author: andy
Date: Sun Dec 22 20:47:32 2013
New Revision: 1553029

URL: http://svn.apache.org/r1553029
Log:
Ignore charset when matching content types.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java?rev=1553029&r1=1553028&r2=1553029&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java Sun Dec 22 20:47:32 2013
@@ -177,8 +177,9 @@ public class WebContent
         //return mapLangToContentType.get(lang) ;
     }
 
+    /** Match content type (ignores charsets and other parameters) */ 
     public static boolean matchContentType(ContentType ct1, ContentType ct2)  {
-        return Lib.equal(ct1, ct2) ;
+        return matchContentType(ct1.getContentType(), ct2.getContentType()) ;
     }
     
     public static boolean matchContentType(String ct1, String ct2)  {