Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMike Krüger <mikkrg@microsoft.com>2019-06-05 01:18:16 +0300
committerMarius Ungureanu <teromario@yahoo.com>2019-06-05 01:18:16 +0300
commitc14a79c938ec06554049f8fd1c9cb2a43805309a (patch)
tree3011f3ae7efcb1de7326696dcc6e7e0f101eee7b /main/src
parent8f170d9469ccbd51acdf938d5fc8a6689b7678cc (diff)
Fixes VSTS #789402: TfsSmartSession - should use HttpClientProvider (#7777)
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/789402
Diffstat (limited to 'main/src')
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/TfsSmartSubtransport.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/TfsSmartSubtransport.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/TfsSmartSubtransport.cs
index d95cae284f..27f150a54e 100644
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/TfsSmartSubtransport.cs
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/TfsSmartSubtransport.cs
@@ -27,6 +27,7 @@ using System;
using System.Net.Http;
using LibGit2Sharp;
using System.IO;
+using MonoDevelop.Core.Web;
namespace MonoDevelop.VersionControl.Git
{
@@ -76,12 +77,11 @@ namespace MonoDevelop.VersionControl.Git
break;
default:
throw new InvalidOperationException();
- }
-
- // Grab the credentials from the user.
- var httpClient = new HttpClient {
- Timeout = TimeSpan.FromMinutes (1.0),
- };
+ }
+
+ // Grab the credentials from the user.
+ var httpClient = HttpClientProvider.CreateHttpClient (serviceUri);
+ httpClient.Timeout = TimeSpan.FromMinutes (1.0);
var res = httpClient.GetAsync (serviceUri).Result;
if (res.StatusCode == System.Net.HttpStatusCode.Unauthorized) {