diff --git a/src/Runner.Common/RunServer.cs b/src/Runner.Common/RunServer.cs index c4ccb6494..879045055 100644 --- a/src/Runner.Common/RunServer.cs +++ b/src/Runner.Common/RunServer.cs @@ -29,7 +29,7 @@ namespace GitHub.Runner.Common { requestUri = serverUri; - _connection = VssUtil.CreateRawConnection(new Uri(serverUri.Authority), credentials); + _connection = VssUtil.CreateRawConnection(serverUri, credentials); _runServiceHttpClient = await _connection.GetClientAsync(); _hasConnection = true; }