incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Story Henry <henry.st...@bblfish.net>
Subject Re: fix for foaf+ssl component
Date Sat, 26 Jun 2010 11:45:40 GMT
The attachment did not seem to work. Here is the diff:

Property changes on: org.apache.clerezza.platform.security.foafssl
___________________________________________________________________
Added: svn:ignore
   + target


Index: org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/WebDescriptionProvider.scala
===================================================================
--- org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/WebDescriptionProvider.scala
(revision 958202)
+++ org.apache.clerezza.platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/WebDescriptionProvider.scala
(working copy)
@@ -37,7 +37,6 @@
  * data as well as (cached) web-data
  */
 class WebDescriptionProvider {
-	
 	private var tcManager: TcManager = null;
 
 	protected def bindTcManager(tcManager: TcManager) = {
@@ -141,8 +140,9 @@
 				case hc: HttpURLConnection => hc.addRequestProperty("Accept:",  acceptHeader);
 			}
 			
+			connection.connect()
+			val in = connection.getInputStream()
 			val mediaType = connection.getContentType()
-			val in = url.openStream
 			val remoteTriples = parser.parse(in, mediaType, representationGraphUri)
 			val localCache = try {
 				val g = tcManager.getMGraph(localCacheUri)



Mime
View raw message