diff --git a/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java b/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java
+++ b/src/main/java/org/jboss/vfs/protocol/VirtualFileURLConnection.java
@@ -45,7 +45,10 @@ class VirtualFileURLConnection extends AbstractURLConnection {
     public void connect() throws IOException {

     }

 

-    public VirtualFile getContent() throws IOException {

+    public Object getContent() throws IOException {

+        if (getContentType() != null) {

+            return super.getContent();

+        }

         return file;

     }
JBVFS-<I> VirtualFileURLConnection#getContent() doesn't call a content handler

...determined by connection's contentType