File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ public virtual Dictionary<string, string> DeserializeResponseHeaders(HttpRespons
6464
6565 public class Client : DynamicObject
6666 {
67- private static HttpClient _httpClient = new HttpClient ( ) ;
6867 public string Host ;
6968 public Dictionary < string , string > RequestHeaders ;
7069 public string Version ;
@@ -183,29 +182,6 @@ private Client BuildClient(string name = null)
183182
184183 }
185184
186- /// Factory method to return the right HttpClient settings.
187- /// </summary>
188- /// <returns>Instance of HttpClient</returns>
189- private HttpClient BuildHttpClient ( )
190- {
191- // Add the WebProxy if set
192- if ( WebProxy != null )
193- {
194- var httpClientHandler = new HttpClientHandler ( )
195- {
196- Proxy = WebProxy ,
197- PreAuthenticate = true ,
198- UseDefaultCredentials = false ,
199- } ;
200-
201- return new HttpClient ( httpClientHandler ) ;
202- }
203-
204- return _httpClient ;
205- }
206-
207- /// <summary>
208-
209185 /// <summary>
210186 /// Add the authorization header, override to customize
211187 /// </summary>
You can’t perform that action at this time.
0 commit comments