1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

aiohttp: Serialize request headers

This commit is contained in:
Paulo Romeira
2020-06-04 15:22:29 -03:00
committed by Kevin McCarthy
parent 77d838e0fc
commit cd0907ffaf

View File

@@ -242,7 +242,7 @@ def vcr_request(cassette, real_request):
if cookie_header:
headers[hdrs.COOKIE] = cookie_header
vcr_request = Request(method, str(request_url), data, headers)
vcr_request = Request(method, str(request_url), data, _serialize_headers(headers))
if cassette.can_play_response_for(vcr_request):
response = play_responses(cassette, vcr_request)