imario 2004/05/23 04:36:24 Modified: vfs/src/java/org/apache/commons/vfs/impl FileTypeMap.java Log: getScheme - mime-type: changed to new contentInfo Revision Changes Path 1.5 +3 -2 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/FileTypeMap.java Index: FileTypeMap.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/FileTypeMap.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- FileTypeMap.java 10 May 2004 20:09:47 -0000 1.4 +++ FileTypeMap.java 23 May 2004 11:36:24 -0000 1.5 @@ -56,7 +56,8 @@ { // Check the file's mime type for a match final FileContent content = file.getContent(); - final String mimeType = (String) content.getAttribute("content-type"); + // final String mimeType = (String) content.getAttribute("content-type"); + final String mimeType = (String) content.getContentInfo().getContentType(); if (mimeType != null) { final String scheme = (String) mimeTypeMap.get(mimeType);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]