clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject clerezza-rdf-core git commit: Closes #1018: ignoring parameters when comparing media type of response
Date Thu, 08 Jun 2017 06:37:33 GMT
Repository: clerezza-rdf-core
Updated Branches:
  refs/heads/master d5f31ce0b -> fec8aa848


Closes #1018: ignoring parameters when comparing media type of response

Project: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/commit/fec8aa84
Tree: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/tree/fec8aa84
Diff: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/diff/fec8aa84

Branch: refs/heads/master
Commit: fec8aa8488941ad62619ee516cee60fdffdf61ba
Parents: d5f31ce
Author: Reto Gmür <me@farewellutopia.com>
Authored: Thu Jun 8 06:36:01 2017 +0000
Committer: Reto Gmür <me@farewellutopia.com>
Committed: Thu Jun 8 06:36:01 2017 +0000

----------------------------------------------------------------------
 .../org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/blob/fec8aa84/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java
----------------------------------------------------------------------
diff --git a/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java
b/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java
index 6379325..63b0086 100644
--- a/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java
+++ b/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlClient.java
@@ -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


Mime
View raw message