From: Bernhard Urban Date: Tue, 1 Dec 2015 18:28:45 +0000 (-0500) Subject: [System.Net] use WebUtility instead of HttpUtility X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=d5fe53c9438538dc3d1508f27b6212e8b067bbd0;p=mono.git [System.Net] use WebUtility instead of HttpUtility --- diff --git a/mcs/class/System/System.Net/HttpListenerRequest.cs b/mcs/class/System/System.Net/HttpListenerRequest.cs index 03617f90f4d..769195a2b3e 100644 --- a/mcs/class/System/System.Net/HttpListenerRequest.cs +++ b/mcs/class/System/System.Net/HttpListenerRequest.cs @@ -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; }