summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-12-28 13:54:55 +0100
committerArne Schwabe <arne@rfc2549.org>2013-12-28 13:54:55 +0100
commit9048871d989f3dd0fc751e973a83cbf27de44f19 (patch)
tree29aabf63219b917ad15cf432c1ca796bb5554057
parent44fa042fc540005dc909c3fb43715e6ddf5b1117 (diff)
Add plain text as acceptable openvpn profile mime type
--HG-- extra : rebase_source : 3b54c59afdc094ec47b480445247ef4656504dd9
-rw-r--r--src/de/blinkt/openvpn/fragments/VPNProfileList.java5
1 files changed, 5 insertions, 0 deletions
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"}) {