Skip to content

Commit 95989e2

Browse files
authored
Merge pull request #479 from watson-developer-cloud/feature-tokyo-speech-endpoint
Support tokyo endpoint
2 parents 0e8dff1 + 22f480b commit 95989e2

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Scripts/Connection/WSConnector.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ public static string FixupURL(string URL)
228228
URL = URL.Replace("https://stream-tls10.", "wss://stream-tls10.");
229229
}
230230
// Germany
231-
else if (URL.StartsWith("https://gateway-fra."))
231+
else if (URL.StartsWith("https://stream-fra."))
232232
{
233-
URL = URL.Replace("https://gateway-fra.", "wss://stream-fra.");
233+
URL = URL.Replace("https://stream-fra.", "wss://stream-fra.");
234234
}
235235
// US East
236236
else if (URL.StartsWith("https://gateway-wdc."))
@@ -242,6 +242,11 @@ public static string FixupURL(string URL)
242242
{
243243
URL = URL.Replace("https://gateway-syd.", "wss://gateway-syd.");
244244
}
245+
// Tokyo
246+
else if (URL.StartsWith("https://gateway-tok."))
247+
{
248+
URL = URL.Replace("https://gateway-tok.", "wss://gateway-tok.");
249+
}
245250
else
246251
{
247252
URL = URL.Replace(https, wss);

Scripts/Utilities/Credentials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public IamTokenData TokenData
8989
/// <summary>
9090
/// Gets and sets the option to disable ssl verification for getting an IAM token.
9191
/// </summary>
92-
public bool DisableSslVerificationDisableSslVerification
92+
public bool DisableSslVerification
9393
{
9494
get { return disableSslVerification; }
9595
set { disableSslVerification = value; }

0 commit comments

Comments
 (0)