betamaxpy / betamax

A VCR imitation designed only for python-requests.
https://betamax.readthedocs.io/en/latest/
Other
566 stars 62 forks source link

QueryMatcher ignores query strings without values #110

Closed limjiayi closed 8 years ago

limjiayi commented 8 years ago

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.

(Source: https://docs.python.org/2/library/urlparse.html)