jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1423684 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java
Date Tue, 18 Dec 2012 21:50:27 GMT
Author: andy
Date: Tue Dec 18 21:50:26 2012
New Revision: 1423684

URL: http://svn.apache.org/viewvc?rev=1423684&view=rev
Log:
Aling to RIOT.

Modified:
    jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java?rev=1423684&r1=1423683&r2=1423684&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java
(original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/http/DatasetGraphAccessorHTTP.java
Tue Dec 18 21:50:26 2012
@@ -268,7 +268,7 @@ public class DatasetGraphAccessorHTTP im
                 InputStream instream = entity.getContent() ;
 //                String mimeType = ConNeg.chooseContentType(request, rdfOffer, ConNeg.acceptRDFXML).getAcceptType()
;
 //                String charset = ConNeg.chooseCharset(request, charsetOffer, ConNeg.charsetUTF8).getAcceptType()
;
-                ts = new TypedInputStream(instream, contentType, charset) ;
+                ts = new TypedInputStream(instream, contentType, charset, null) ;
             }
             Graph graph = GraphFactory.createGraphMem() ;
             if ( processBody )
@@ -292,7 +292,7 @@ public class DatasetGraphAccessorHTTP im
         // Either it's XML and so the XML parser deals with it, or the 
         // language determines the charset and the parsers offer InputStreams.   
        
-        Lang lang = FusekiLib.langFromContentType(ts.getMediaType()) ;
+        Lang lang = FusekiLib.langFromContentType(ts.getContentType()) ;
         if ( lang == null )
             throw new FusekiException("Unknown lang for "+ts.getMediaType()) ;
         RDFParserOutput dest = RDFParserOutputLib.graph(graph) ;



Mime
View raw message