[System.Net] use WebUtility instead of HttpUtility
authorBernhard Urban <bernhard.urban@xamarin.com>
Tue, 1 Dec 2015 18:28:45 +0000 (13:28 -0500)
committerBernhard Urban <bernhard.urban@xamarin.com>
Tue, 1 Dec 2015 18:28:45 +0000 (13:28 -0500)
mcs/class/System/System.Net/HttpListenerRequest.cs

index 03617f90f4d7885d120fdb9a79d07e5dc5f98072..769195a2b3ec4c965278d9ed8aa7670388d5e800 100644 (file)
@@ -38,6 +38,7 @@ using System.Security.Cryptography.X509Certificates;
 using System.Text;
 using System.Security.Authentication.ExtendedProtection;
 using System.Threading.Tasks;
+using System.Net;
 
 namespace System.Net {
        public sealed class HttpListenerRequest
@@ -175,7 +176,7 @@ namespace System.Net {
                                                                host, LocalEndPoint.Port);
 
                        if (!Uri.TryCreate (base_uri + path, UriKind.Absolute, out url)){
-                               context.ErrorMessage = HttpUtility.HtmlEncode ("Invalid url: " + base_uri + path);
+                               context.ErrorMessage = WebUtility.HtmlEncode ("Invalid url: " + base_uri + path);
                                return;
                        }