Fixed parsing the host header field
[mono.git] / mcs / class / System.Net.Http / System.Net.Http.Headers / HttpHeaderValueCollection.cs
index e929c599a77cdeffe3dc24daaea2892773e18ba9..72c4299e64ad4c8eb85239f9d849037435a10de0 100644 (file)
@@ -61,6 +61,11 @@ namespace System.Net.Http.Headers
                        list.Add (item);
                }
 
+               internal void AddRange (List<T> values)
+               {
+                       list.AddRange (values);
+               }
+
                public void Clear ()
                {
                        list.Clear ();
@@ -92,7 +97,7 @@ namespace System.Net.Http.Headers
                        // what .NET does when one of the values is invalid
                        // But it better represents what is actually hold by
                        // the collection
-                       return string.Join (", ", list);
+                       return string.Join (headerInfo.Separator, list);
                }
 
                public bool TryParseAdd (string input)