assign octet-stream mimetype to unknown type file oc-android-1-3-14
authorBartek Przybylski <bart.p.pl@gmail.com>
Tue, 30 Oct 2012 21:36:50 +0000 (22:36 +0100)
committerBartek Przybylski <bart.p.pl@gmail.com>
Tue, 30 Oct 2012 21:36:50 +0000 (22:36 +0100)
AndroidManifest.xml
src/eu/alefzero/webdav/WebdavEntry.java

index a411f8d..0c15b2d 100644 (file)
@@ -17,8 +17,8 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
  -->\r
 <manifest package="com.owncloud.android"\r
   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
  -->\r
 <manifest package="com.owncloud.android"\r
-    android:versionCode="103013"\r
-    android:versionName="1.3.13" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionCode="103014"\r
+    android:versionName="1.3.14" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index 773276d..5785f91 100644 (file)
@@ -50,6 +50,8 @@ public class WebdavEntry {
                     mName = tmp[tmp.length - 1];
             }
 
                     mName = tmp[tmp.length - 1];
             }
 
+            // use unknown mimetype as default behavior
+            mContentType = "application/octet-stream";
             prop = propSet.get(DavPropertyName.GETCONTENTTYPE);
             if (prop != null) {
                 mContentType = (String) prop.getValue();
             prop = propSet.get(DavPropertyName.GETCONTENTTYPE);
             if (prop != null) {
                 mContentType = (String) prop.getValue();