Skip to content

Commit

Permalink
Update ValidateSslCertificate method in accordance with recent change…
Browse files Browse the repository at this point in the history
…s to the security testing method (#724)
  • Loading branch information
AsabuHere authored Sep 22, 2023
1 parent 1924b91 commit c29a4a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twilio/http/validation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def validate_ssl_certificate(self, client):
Validate that a request to the new SSL certificate is successful
:return: null on success, raise TwilioRestException if the request fails
"""
response = client.request("GET", "https://api.twilio.com:8443")
response = client.request("GET", "https://tls-test.twilio.com:443")

if response.status_code < 200 or response.status_code >= 300:
raise TwilioRestException(
response.status_code,
"https://api.twilio.com:8443",
"https://tls-test.twilio.com:443",
"Failed to validate SSL certificate",
)

0 comments on commit c29a4a6

Please sign in to comment.