You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Story Henry <he...@bblfish.net> on 2010/06/26 13:40:16 UTC
fix for foaf+ssl component
The foaf+ssl component currently sets the mime types, but then by re-opening the connection looses the information. This is corrected in the following patch:
Re: fix for foaf+ssl component
Posted by Story Henry <he...@bblfish.net>.
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)