From 9048871d989f3dd0fc751e973a83cbf27de44f19 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 28 Dec 2013 13:54:55 +0100 Subject: Add plain text as acceptable openvpn profile mime type --HG-- extra : rebase_source : 3b54c59afdc094ec47b480445247ef4656504dd9 --- src/de/blinkt/openvpn/fragments/VPNProfileList.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/de/blinkt') diff --git a/src/de/blinkt/openvpn/fragments/VPNProfileList.java b/src/de/blinkt/openvpn/fragments/VPNProfileList.java index 866aea25..1fd875b0 100644 --- a/src/de/blinkt/openvpn/fragments/VPNProfileList.java +++ b/src/de/blinkt/openvpn/fragments/VPNProfileList.java @@ -233,6 +233,11 @@ public class VPNProfileList extends ListFragment { supportedMimeTypes.add("application/openvpn-profile"); supportedMimeTypes.add("application/ovpn"); + + // Webservers unfortunately report this for .conf files sometimes + supportedMimeTypes.add("text/plain"); + supportedMimeTypes.add("application/conf"); + MimeTypeMap mtm = MimeTypeMap.getSingleton(); for(String ext: new String[] {"ovpn", "conf"}) { -- cgit v1.2.3