Skip to content

Commit 905664a

Browse files
authored
Merge pull request #331 from watson-developer-cloud/hotfix-streaming-url
redirect streaming requests to TLS 1.0 endpoint
2 parents a6f9d95 + 8253f73 commit 905664a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Scripts/Connection/WSConnector.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ public TextMessage(string text)
174174
/// <returns>The fixed up URL.</returns>
175175
public static string FixupURL(string URL)
176176
{
177-
if (URL.StartsWith("http://"))
178-
URL = URL.Replace("http://", "ws://");
179-
else if (URL.StartsWith("https://"))
180-
URL = URL.Replace("https://", "wss://");
177+
if (URL.StartsWith("http://stream"))
178+
URL = URL.Replace("http://stream", "ws://stream-tls10");
179+
else if (URL.StartsWith("https://stream"))
180+
URL = URL.Replace("https://stream", "wss://stream-tls10");
181181

182182
return URL;
183183
}

0 commit comments

Comments
 (0)