Merge pull request #2024 from BogdanovKirill/webrequesttest
[mono.git] / mcs / class / System / System.Net / EndPointListener.cs
index 909101100999098d3e2f99bff94e6306de28fcf3..df73d85428e37786b523f71cb071de1522a4e3e8 100644 (file)
@@ -29,7 +29,7 @@
 
 #if SECURITY_DEP
 
-#if MONOTOUCH
+#if MONOTOUCH || MONODROID
 using Mono.Security.Authenticode;
 #else
 extern alias MonoSecurity;
@@ -168,7 +168,7 @@ namespace System.Net {
 
                        string host = uri.Host;
                        int port = uri.Port;
-                       string path = HttpUtility.UrlDecode (uri.AbsolutePath);
+                       string path = WebUtility.UrlDecode (uri.AbsolutePath);
                        string path_slash = path [path.Length - 1] == '/' ? path : path + "/";
                        
                        HttpListener best_match = null;