Skip to content

Commit

Permalink
fix: keeps static link to requests.Session.request
Browse files Browse the repository at this point in the history
  • Loading branch information
e-moran committed Jun 30, 2022
1 parent 992c031 commit 65a281c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evervault/http/requestintercept.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

from evervault.errors.evervault_errors import CertDownloadError

old_request_func = requests.Session.request


class RequestIntercept(object):
def __init__(
Expand Down Expand Up @@ -53,8 +55,6 @@ def setup_domains(self, ignore_domains=[]):
self.ignore_if_endswith += ("." + domain, "@" + domain)

def setup(client_self):
old_request_func = requests.Session.request

client_self.__get_cert()

cert_path = client_self.cert_path
Expand Down

0 comments on commit 65a281c

Please sign in to comment.