Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update security method validatessl #961

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/base/BaseTwilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ namespace Twilio {

/* jshint ignore:start */
/**
* Validates that a request to the new SSL certificate is successful.
* Test if your environment is impacted by a TLS or certificate
* change is by sending an HTTP request to the test endpoint
*
* @throws RestException if the request fails
*
Expand All @@ -244,7 +245,7 @@ namespace Twilio {
return this.httpClient
?.request({
method: "get",
uri: "https://api.twilio.com:8443/2010-04-01/.json",
uri: "https://tls-test.twilio.com:443",
})
.then((response: any) => {
if (response["statusCode"] < 200 || response["statusCode"] >= 300) {
Expand Down