mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
aiohttp headers are case insensitive (#461)
* aiohttp headers are case insensitive * flakes
This commit is contained in:
committed by
Josh Peak
parent
9d37210fc8
commit
e3b7116564
@@ -7,6 +7,7 @@ import logging
|
||||
import json
|
||||
|
||||
from aiohttp import ClientResponse, streams
|
||||
from multidict import CIMultiDict, CIMultiDictProxy
|
||||
from yarl import URL
|
||||
|
||||
from vcr.request import Request
|
||||
@@ -61,7 +62,7 @@ def build_response(vcr_request, vcr_response, history):
|
||||
response.status = vcr_response['status']['code']
|
||||
response._body = vcr_response['body'].get('string', b'')
|
||||
response.reason = vcr_response['status']['message']
|
||||
response._headers = vcr_response['headers']
|
||||
response._headers = CIMultiDictProxy(CIMultiDict(vcr_response['headers']))
|
||||
response._history = tuple(history)
|
||||
|
||||
response.close()
|
||||
|
||||
Reference in New Issue
Block a user