mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-13 00:47:56 -05:00
Omitting `keep_blank_values` was dropping blank query parameters. Furthermore, converting the output of `parse_qsl` to a dictionary was unnecessarily modifying the order of parameters since dicts are not ordered. Fortunately `urllib.urlencode` also accepts a sequence of two-element tuples and the order of parameters in the encoded string will match the order of parameter tuples in the sequence.
7.0 KiB
7.0 KiB