UriParser.GetComponentsHelper now sets flag UserEscaped.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 11 Jul 2014 13:38:15 +0000 (14:38 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 11 Jul 2014 13:38:15 +0000 (14:38 +0100)
mcs/class/System/System/UriParser.cs

index 38ea3f8e49c42f0f5d6146892407a4e386a0e500..7a2579d8c80aa99958422608ffeb7667a56b8c36 100644 (file)
@@ -71,6 +71,9 @@ namespace System {
                        if (UriHelper.HasCharactersToNormalize (uri.OriginalString))
                                formatFlags |= UriHelper.FormatFlags.HasUriCharactersToNormalize;
 
+                       if (uri.UserEscaped)
+                               formatFlags |= UriHelper.FormatFlags.UserEscaped;
+
                        if (!string.IsNullOrEmpty(elements.host))
                                formatFlags |= UriHelper.FormatFlags.HasHost;