mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
add missing _get_content_length static method
also add _is_textIO
This commit is contained in:
@@ -335,6 +335,11 @@ class VCRConnection(object):
|
||||
super(VCRConnection, self).__setattr__(name, value)
|
||||
|
||||
|
||||
for k, v in HTTPConnection.__dict__.items():
|
||||
if isinstance(v, staticmethod):
|
||||
setattr(VCRConnection, k, v)
|
||||
|
||||
|
||||
class VCRHTTPConnection(VCRConnection):
|
||||
'''A Mocked class for HTTP requests'''
|
||||
_baseclass = HTTPConnection
|
||||
|
||||
Reference in New Issue
Block a user