Closes #1018: ignoring parameters when comparing media type of response master
authorReto Gmür <me@farewellutopia.com>
Thu, 8 Jun 2017 06:36:01 +0000 (06:36 +0000)
committerReto Gmür <me@farewellutopia.com>
Thu, 8 Jun 2017 06:36:01 +0000 (06:36 +0000)
impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java

index 63793252305e4072f97530334c3758d9707e1905..63b00862af27ce1d9871488fec07b8a6b0782dbb 100644 (file)
@@ -59,7 +59,7 @@ public class SparqlClient {
         try {
             InputStream in = entity2.getContent();
             final String mediaType = entity2.getContentType().getValue();
-            if ("application/sparql-results+xml".equals(mediaType)) {
+            if (mediaType.startsWith("application/sparql-results+xml")) {
                 return SparqlResultParser.parse(in);
             } else {
                 //assuming RDF response