Fixed parsing the host header field
[mono.git] / mcs / class / System.Net.Http / System.Net.Http.Headers / HttpHeaderValueCollection.cs
index fb024ed81b89be2390499ed354e46600abad63bc..72c4299e64ad4c8eb85239f9d849037435a10de0 100644 (file)
@@ -97,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)