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

need the sock for httplib2, don't want sock for requests, can't we all just get along?

This commit is contained in:
Kevin McCarthy
2014-03-08 21:39:11 -10:00
parent dedca0f6e7
commit f5db99f079
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ class VCRHTTPConnectionWithTimeout(VCRHTTPConnection,
self.proxy_info = kwargs.pop('proxy_info', None)
VCRHTTPConnection.__init__(self, *args, **safe_kwargs)
self.sock = self.real_connection.sock
class VCRHTTPSConnectionWithTimeout(VCRHTTPSConnection,
@@ -49,3 +50,4 @@ class VCRHTTPSConnectionWithTimeout(VCRHTTPSConnection,
self.disable_ssl_certificate_validation = kwargs.pop(
'disable_ssl_certificate_validation', None)
VCRHTTPSConnection.__init__(self, *args, **safe_kwargs)
self.sock = self.real_connection.sock