Permalink
Browse files

Added fix for form and query

  • Loading branch information...
1 parent 45c08f9 commit 03e6c006b48b514af9ffef2ef1c46c66da6da85a @grumpydev grumpydev committed Jan 4, 2013
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/Nancy/Extensions/StringExtensions.cs
@@ -65,10 +65,18 @@ public static DynamicDictionary AsQueryDictionary(this string queryString)
{
var coll = HttpUtility.ParseQueryString(queryString);
var ret = new DynamicDictionary();
-
+
+ var found = 0;
foreach (var key in coll.AllKeys.Where(key => key != null))
{
ret[key] = coll[key];
+
+ found++;
+
+ if (found >= StaticConfiguration.RequestQueryFormMultipartLimit)
+ {
+ break;
+ }
}
return ret;

0 comments on commit 03e6c00

Please sign in to comment.