Skip to content

Commit

Permalink
Update HTTPAdapter for requests version
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Nov 1, 2024
1 parent 4463986 commit 7f37669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corehq/util/public_only_requests/public_only_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, domain_name, src):
self.src = src
super().__init__()

def get_connection(self, url, proxies=None):
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
from corehq.motech.requests import validate_user_input_url_for_repeaters
validate_user_input_url_for_repeaters(url, domain=self.domain_name, src=self.src)
return super().get_connection(url, proxies=proxies)
validate_user_input_url_for_repeaters(request.url, domain=self.domain_name, src=self.src)
return super().get_connection_with_tls_context(request, verify, proxies, cert)

0 comments on commit 7f37669

Please sign in to comment.