diff --git a/src/Nancy/Extensions/CollectionExtensions.cs b/src/Nancy/Extensions/CollectionExtensions.cs
index 605ffed977..1c28a38d06 100644
--- a/src/Nancy/Extensions/CollectionExtensions.cs
+++ b/src/Nancy/Extensions/CollectionExtensions.cs
@@ -17,7 +17,15 @@ public static class CollectionExtensions
/// An instance.
public static IDictionary> ToDictionary(this NameValueCollection source)
{
- return source.AllKeys.ToDictionary>(key => key, source.GetValues);
+ return source.AllKeys.ToDictionary>(key => key, key =>
+ {
+ var ret = source.GetValues(key);
+ if (key == "Cookie")
+ {
+ return new string[] { string.Join(string.Empty, ret) };
+ }
+ return ret;
+ });
}
///
@@ -85,4 +93,4 @@ public static IEnumerable DistinctBy(this IEnumerable