Merge pull request #3106 from lambdageek/dev/monoerror-unhandled
[mono.git] / mcs / class / referencesource / System / net / System / Net / WebHeaderCollection.cs
index 9257cf5734640ca940c548f2982d702fa6b02311..42743232cf72ab204be6f1ea18589b80d6eb29e1 100644 (file)
@@ -249,7 +249,9 @@ namespace System.Net {
 #if MONO
         internal bool AllowMultiValues (string name)
         {
-            return HInfo[name].AllowMultiValues;
+            var hinfo = HInfo[name];
+            // Is common header which supports multi value or it's unknown header
+            return hinfo.AllowMultiValues || hinfo.HeaderName == "";
         }
 #endif