]> khamidou — GitHub mirrors - vcrpy.git/commit
Don't write header values multiple times.
authorMatt Thomson <mattjohnthomson@gmail.com>
Sat, 6 Sep 2014 15:57:12 +0000 (16:57 +0100)
committerMatt Thomson <mattjohnthomson@gmail.com>
Sat, 6 Sep 2014 15:57:12 +0000 (16:57 +0100)
commit3c410b5f9d3539a8df9d5ee3315c4a084523a692
tree70534422d7d99a04a7a438f0d3054ce6c2ee4294
parent7a5795a5476bf843b883b5983559a2fd5fd815f3
Don't write header values multiple times.

On Python 3, response.msg.keys() contains the same value multiple times if
there are multiple headers with the same value.  Work around this by
converting to a set before iterating over it.
tests/integration/test_request.py
vcr/stubs/compat.py