private void addQueryParam(Map map, string q, int start, int eq, int end, bool escaped)
{
string key, val;
if (start == eq && q[start] != '=')
{
key = toQueryStr(q, start, end, escaped);
val = "true";
}
else
{
key = toQueryStr(q, start, eq, escaped);
val = toQueryStr(q, eq+1, end, escaped);
}
string dup = (string)map.get(key);
if (dup != null) val = dup + "," + val;
map.set(key, val);
}