The QueryMatcher doesn't recognize that the URLs http://example.com/query.pl?123 and http://example.com/query.pl?456 have different query strings.
This is because its to_dict method uses parse_qs without specifying the optional argument keep_blank_values, which defaults to False. As a result, blank values are ignored.
The
QueryMatcher
doesn't recognize that the URLshttp://example.com/query.pl?123
andhttp://example.com/query.pl?456
have different query strings.This is because its
to_dict
method usesparse_qs
without specifying the optional argumentkeep_blank_values
, which defaults toFalse
. As a result, blank values are ignored.(Source: https://docs.python.org/2/library/urlparse.html)