Remove duplicated files from system.dll (saves about 100kb)
[mono.git] / mcs / class / System / System.Net / HttpListenerRequest.cs
index f8be5c4f3b9e2e8b8d0eb065fe27b2be74937f33..6329e359a4fd27e72a31be770aec7f1341b531d6 100644 (file)
@@ -30,6 +30,8 @@
 
 #if SECURITY_DEP
 
+extern alias MonoSecurity;
+
 using System.Collections;
 using System.Collections.Specialized;
 using System.Globalization;
@@ -42,7 +44,7 @@ using System.Security.Authentication.ExtendedProtection;
 #if NET_4_5
 using System.Threading.Tasks;
 #endif
-using Mono.Security.Protocol.Tls;
+using MonoSecurity::Mono.Security.Protocol.Tls;
 
 namespace System.Net {
        public sealed class HttpListenerRequest
@@ -165,7 +167,7 @@ namespace System.Net {
                        if (Uri.MaybeUri (raw_url) && Uri.TryCreate (raw_url, UriKind.Absolute, out raw_uri))
                                path = raw_uri.PathAndQuery;
                        else
-                               path = HttpUtility.UrlDecode (raw_url);
+                               path = raw_url;
 
                        if ((host == null || host.Length == 0))
                                host = UserHostAddress;
@@ -319,7 +321,7 @@ namespace System.Net {
                                // TODO: test if MS has a timeout when doing this
                                try {
                                        IAsyncResult ares = InputStream.BeginRead (bytes, 0, length, null, null);
-                                       if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (100))
+                                       if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (1000))
                                                return false;
                                        if (InputStream.EndRead (ares) <= 0)
                                                return true;