Skip to content

Commit

Permalink
ConfigureProxy(http) was not being called in the ExecuteAsync().
Browse files Browse the repository at this point in the history
Added ConfigureProxy(http) to the end of ConfigureHttp(request, http).
Removed call to ConfigureProxy(http) in Execute().
  • Loading branch information
BMeyerKC committed Feb 27, 2013
1 parent cc283fb commit 6ebfc29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion RestSharp/RestClient.Sync.cs
Expand Up @@ -72,7 +72,6 @@ private IRestResponse Execute(IRestRequest request, string httpMethod, Func<IHtt
var http = HttpFactory.Create();

ConfigureHttp(request, http);
ConfigureProxy(http);

response = ConvertToRestResponse(request, getResponse(http, httpMethod));
response.Request = request;
Expand Down
2 changes: 2 additions & 0 deletions RestSharp/RestClient.cs
Expand Up @@ -375,6 +375,8 @@ private void ConfigureHttp(IRestRequest request, IHttp http)
http.RequestBody = body.Value.ToString();
http.RequestContentType = body.Name;
}

ConfigureProxy(http);
}

private RestResponse ConvertToRestResponse(IRestRequest request, HttpResponse httpResponse)
Expand Down

0 comments on commit 6ebfc29

Please sign in to comment.