1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Correctly patch HTTPConnection.request in Python 3.6

Fixes https://github.com/kevin1024/vcrpy/issues/293
This commit is contained in:
Derek Bekoe
2017-01-23 14:54:26 -08:00
parent ed35643c3e
commit 97473bb8d8

View File

@@ -153,7 +153,7 @@ class VCRConnection(object):
)
return uri.replace(prefix, '', 1)
def request(self, method, url, body=None, headers=None):
def request(self, method, url, body=None, headers=None, *args, **kwargs):
'''Persist the request metadata in self._vcr_request'''
self._vcr_request = Request(
method=method,