Return the right empty collection in ParseQueryString.
[mono.git] / mcs / class / System.Web / System.Web / HttpUtility.cs
index e79883d1e15e285ed9a161220850c171c45777bc..e05ae9761bb67a2222c1bb02d7aafa56b4f63d46 100644 (file)
@@ -654,7 +654,7 @@ namespace System.Web {
                        if (encoding == null)
                                throw new ArgumentNullException ("encoding");
                        if (query.Length == 0 || (query.Length == 1 && query[0] == '?'))
-                               return new NameValueCollection ();
+                               return new HttpQSCollection ();
                        if (query[0] == '?')
                                query = query.Substring (1);