Skip to content

Commit 6ebfc29

Browse files
committed
ConfigureProxy(http) was not being called in the ExecuteAsync().
Added ConfigureProxy(http) to the end of ConfigureHttp(request, http). Removed call to ConfigureProxy(http) in Execute().
1 parent cc283fb commit 6ebfc29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RestSharp/RestClient.Sync.cs

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ private IRestResponse Execute(IRestRequest request, string httpMethod, Func<IHtt
7272
var http = HttpFactory.Create();
7373

7474
ConfigureHttp(request, http);
75-
ConfigureProxy(http);
7675

7776
response = ConvertToRestResponse(request, getResponse(http, httpMethod));
7877
response.Request = request;

RestSharp/RestClient.cs

+2
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ private void ConfigureHttp(IRestRequest request, IHttp http)
375375
http.RequestBody = body.Value.ToString();
376376
http.RequestContentType = body.Name;
377377
}
378+
379+
ConfigureProxy(http);
378380
}
379381

380382
private RestResponse ConvertToRestResponse(IRestRequest request, HttpResponse httpResponse)

0 commit comments

Comments
 (0)