racker/falcon — pull request #322 by kgriffs (2014-10-02 19:16:07+00:00)
Title: fix(Request): Empty value in query string should not be parsed into None

Before this patch, a query string such as "foo=1&foo=&foo=44" would
be parsed into [('foo', '1'), ('foo', '44')] and subsequently folded
into: params['foo'] = ['1', '44']. However, the equivalent list
expressed using the comma-delimited "API" convention "foo=1,,44" would
result in ['1', None, '44'].

This patch normalizes the behavior between the two different list
conventions.

BREAKING CHANGE: When using the comma-delimited list convention,
req.get_param_as_list(...) will no longer insert placeholders,
using the None type, for empty elements. For example, where
previously the query string "foo=1,,3" would result in
['1', None, '3'], it will now result in ['1', '3'].

Closes #314