commit | 0ce923185c39aa9c5ce55caef80967a0443187c7 | [log] [tgz] |
---|---|---|
author | Thomas Watson <twatson> | Fri May 14 22:23:34 2004 +0000 |
committer | Thomas Watson <twatson> | Fri May 14 22:23:34 2004 +0000 |
tree | a3902028c8531f91c6b105f2e2dcda93a5af7fb2 | |
parent | f163d216d28c76928c90e578c24ff24d5bb22fa9 [diff] |
Must check for markSupported on 1.3.1 VM's
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleURLConnection.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleURLConnection.java index b5345cd..5a83c52 100644 --- a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleURLConnection.java +++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleURLConnection.java
@@ -71,7 +71,8 @@ } } try { - contentType = guessContentTypeFromStream(in); + if (in.markSupported()) + contentType = guessContentTypeFromStream(in); } catch (IOException e) { } }